]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monclient: small cleanup
authorSage Weil <sage@newdream.net>
Wed, 16 Sep 2009 19:12:43 +0000 (12:12 -0700)
committerSage Weil <sage@newdream.net>
Thu, 17 Sep 2009 20:18:11 +0000 (13:18 -0700)
src/mon/MonClient.cc

index 064cf2c1c698d3decbc39dc97a2bd6e5f4198851..c8c03a3c7128692d38133e099e39dec6120bcd84 100644 (file)
@@ -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;