From: Greg Farnum Date: Wed, 12 Feb 2014 21:37:50 +0000 (-0800) Subject: monc: set "hunting" to true when we reopen the mon session X-Git-Tag: v0.67.8~49^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f4c20bdab153d1603cc99186d8d3e3970aa8976;p=ceph.git monc: set "hunting" to true when we reopen the mon session If we don't have a connecton to a monitor, we want to retry to another monitor regardless of whether it's the first time or not. Signed-off-by: Greg Farnum Reviewed-by: Sage Weil (cherry picked from commit 60da8abe0ebf17ce818d6fcc6391401878123bb7) --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 1da030e21836..3bc24aedbc19 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -543,6 +543,7 @@ void MonClient::_reopen_session(int rank, string name) // restart authentication handshake state = MC_STATE_NEGOTIATING; + hunting = true; MAuth *m = new MAuth; m->protocol = 0; @@ -573,7 +574,6 @@ bool MonClient::ms_handle_reset(Connection *con) return true; ldout(cct, 0) << "hunting for new mon" << dendl; - hunting = true; _reopen_session(); } }