]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
monclient: start with hunting=true
authorSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 18:24:20 +0000 (11:24 -0700)
committerSage Weil <sage@newdream.net>
Fri, 16 Oct 2009 18:24:20 +0000 (11:24 -0700)
(and reset after get_monmap_privately)

src/mon/MonClient.cc
src/mon/MonClient.h

index a84a30724aa7393b05628f35dc1d5ef6b323e16e..aa3ca986a11752edc95989e06a655b9147c75df0 100644 (file)
@@ -161,6 +161,8 @@ int MonClient::get_monmap_privately()
     messenger = 0;
   }
  
+  hunting = true;  // reset this to true!
+
   if (monmap.epoch)
     return 0;
   return -1;
@@ -169,8 +171,6 @@ int MonClient::get_monmap_privately()
 
 bool MonClient::ms_dispatch(Message *m)
 {
-  dout(10) << "dispatch " << *m << dendl;
-
   if (my_addr == entity_addr_t())
     my_addr = messenger->get_myaddr();
 
index afc959f3173f28145c1f6b3ee6280c9461d38c00..7184474fcfffe520fa213411ec021b5ac4662504 100644 (file)
@@ -138,7 +138,7 @@ public:
   MonClient() : messenger(NULL), cur_mon(-1),
                monc_lock("MonClient::monc_lock"),
                timer(monc_lock),
-               hunting(false),
+               hunting(true),
                mounting(0), mount_err(0) { }
   ~MonClient() {
     timer.cancel_all_events();