]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/AuthMonitor: provide AuthMonitor with mon count and rank *only* while active
authorSage Weil <sage@redhat.com>
Wed, 20 Feb 2019 22:51:42 +0000 (16:51 -0600)
committerSage Weil <sage@redhat.com>
Wed, 20 Feb 2019 23:08:28 +0000 (17:08 -0600)
commit2124d439073dfa3640789f34d2d96246023b1286
tree0c49fe916e8d979ded73de76082add258b2ca256
parente72d7bc67165cc450499ff9ff32dcd364ad9cec8
mon/AuthMonitor: provide AuthMonitor with mon count and rank *only* while active

Provide AuthMonitor with the mon count and rank under the mon->auth_lock.
Only set these values while the monitor is active (and the mon is allowed
to authenticate).  When we start an election or bootstrap, clear these
values.

Note that we aren't using them yet!

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/AuthMonitor.cc
src/mon/AuthMonitor.h
src/mon/Monitor.cc