From 3f182b8a034749e3239a4241552e400cb951a8de Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 16 Oct 2009 11:24:20 -0700 Subject: [PATCH] monclient: start with hunting=true (and reset after get_monmap_privately) --- src/mon/MonClient.cc | 4 ++-- src/mon/MonClient.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.5