Why does the etcd's authStore
read and set revision from boltdb when handling AuthEnable requests, instead of adding revision?
#15857
Unanswered
Phoenix500526
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@ahrtr @tjungblu @serathius @jmhbnz Can anybody help? Thanks~ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, everyone. I'm a newbie to etcd and have a problem with some code implemented in the etcd.
Let's look at the implementation of the
AuthEnable
method first (reference: AuthEnable ):The authStore increases the revision of the
authStore
when handling Auth-related requests, such as AuthDisable, UserAdd, etc. However, the AuthEnable implementation in different logic, as it reads the revision value from the underlyingboltdb
and uses that value to override theauthStore.revision
, which confuses me:AuthEnable
just increment revision directly like whatAuthDisable
does?Can anybody tell me why? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions