From: Sage Weil Date: Wed, 16 Sep 2009 19:12:43 +0000 (-0700) Subject: monclient: small cleanup X-Git-Tag: v0.15~53 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9f480d62aecc0c9fe54a4953676152d6cdfe926;p=ceph.git monclient: small cleanup --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 064cf2c1c698..c8c03a3c7128 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -191,14 +191,6 @@ bool MonClient::ms_dispatch(Message *m) return false; } -void MonClient::_finish_hunting() -{ - if (hunting) { - dout(0) << "found new mon" << cur_mon << dendl; - hunting = false; - } -} - void MonClient::handle_monmap(MMonMap *m) { dout(10) << "handle_monmap " << *m << dendl; @@ -320,12 +312,20 @@ bool MonClient::ms_handle_reset(const entity_addr_t& peer) if (hunting) return true; - dout(0) << "starting hunt for new mon" << dendl; + dout(0) << "hunting for new mon" << dendl; hunting = true; _reopen_session(); return false; } +void MonClient::_finish_hunting() +{ + if (hunting) { + dout(0) << "found mon" << cur_mon << dendl; + hunting = false; + } +} + void MonClient::tick() { dout(10) << "tick" << dendl;