increase/commit auth revision when auth enable

Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
Andy Xie 2024-06-26 18:04:19 +08:00
parent 16ed0fe86e
commit 0bfe109a42

View File

@ -286,10 +286,9 @@ func (as *authStore) AuthEnable() error {
as.enabled = true as.enabled = true
as.tokenProvider.enable() as.tokenProvider.enable()
as.commitRevision(tx)
as.refreshRangePermCache(tx) as.refreshRangePermCache(tx)
as.setRevision(tx.UnsafeReadAuthRevision())
as.lg.Info("enabled authentication") as.lg.Info("enabled authentication")
return nil return nil
} }