]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: fix shutdown race 8335/head
authorSage Weil <sage@redhat.com>
Mon, 28 Mar 2016 14:33:53 +0000 (10:33 -0400)
committerSage Weil <sage@redhat.com>
Mon, 28 Mar 2016 14:33:53 +0000 (10:33 -0400)
commit5b44a348bfe4978446bbc7acf58eb8f60a47c965
treee02956a501ae40f2ca932883cd2a8834a46556a9
parentcd3385b59ff9764eb5cae9a80faf04ab4e648f05
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>
src/mon/MonClient.cc