From: Sage Weil Date: Fri, 16 Oct 2009 18:24:20 +0000 (-0700) Subject: monclient: start with hunting=true X-Git-Tag: v0.17~33 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3f182b8a034749e3239a4241552e400cb951a8de;p=ceph.git monclient: start with hunting=true (and reset after get_monmap_privately) --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index a84a30724aa73..aa3ca986a1175 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -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(); diff --git a/src/mon/MonClient.h b/src/mon/MonClient.h index afc959f3173f2..7184474fcfffe 100644 --- a/src/mon/MonClient.h +++ b/src/mon/MonClient.h @@ -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();