]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: fix shutdown race 8806/head
authorSage Weil <sage@redhat.com>
Mon, 28 Mar 2016 14:33:53 +0000 (10:33 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Apr 2016 08:57:48 +0000 (10:57 +0200)
commit7b3f1da0ab7f60705b6bc802ddb1bfbce10c8738
treeeae4588d75f26accd65da7e4d904751e1ab3795f
parente219e85be00088eecde7b1f29d7699493a79bc4d
mon/MonClient: fix shutdown race

While we are shutting down, we should drop all subsequent mon
messages.  Currently it is possible to finish the authentication
sequence *while* we are shutting down, such that a subsequent
attempt to authenticate succeeds.

Fix this by resetting cur_con early in the sequence, as this
makes us drop all incoming messages.

Fixes: http://tracker.ceph.com/issues/13992
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 5b44a348bfe4978446bbc7acf58eb8f60a47c965)
src/mon/MonClient.cc