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.78~162^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=60da8abe0ebf17ce818d6fcc6391401878123bb7;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 --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index c1403d58db1..3149290ede1 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -615,6 +615,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; @@ -645,7 +646,6 @@ bool MonClient::ms_handle_reset(Connection *con) return true; ldout(cct, 0) << "hunting for new mon" << dendl; - hunting = true; _reopen_session(); } }