mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
increase/commit auth revision when auth enable
Signed-off-by: Andy Xie <andy.xning@gmail.com>
This commit is contained in:
parent
16ed0fe86e
commit
0bfe109a42
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user