]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: add auth_lock to protect auth_meta manipulation
authorSage Weil <sage@redhat.com>
Thu, 31 Jan 2019 19:10:31 +0000 (13:10 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 18:10:34 +0000 (12:10 -0600)
commit574e6bf6ad4aca621b7651889fe852d4f6074dc1
tree730f75c9ebe5df79ede5de4ba2b3157099d6e6ed
parent766df9f740b5d54eb33b8fef4bab397b4a889739
mon: add auth_lock to protect auth_meta manipulation

In particular, we could be handling a get_auth_request() on a reconnect
while also running handle_auth_request() on a racing connection between
monitors.

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