From: Sage Weil Date: Fri, 31 May 2013 21:30:48 +0000 (-0700) Subject: mon: no need to refresh from _active X-Git-Tag: v0.66~47^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d941363d6e4249e97b64faff0e573f75e918ac0c;p=ceph.git mon: no need to refresh from _active The refresh is done explicitly by the monitor, independent of the more fragile PaxosService callbacks. Signed-off-by: Sage Weil --- diff --git a/src/mon/PaxosService.cc b/src/mon/PaxosService.cc index 71c1ea52790..8dc1b42bec5 100644 --- a/src/mon/PaxosService.cc +++ b/src/mon/PaxosService.cc @@ -24,11 +24,12 @@ #define dout_subsys ceph_subsys_paxos #undef dout_prefix -#define dout_prefix _prefix(_dout, mon, paxos, service_name) -static ostream& _prefix(std::ostream *_dout, Monitor *mon, Paxos *paxos, string service_name) { +#define dout_prefix _prefix(_dout, mon, paxos, service_name, get_first_committed(), get_last_committed()) +static ostream& _prefix(std::ostream *_dout, Monitor *mon, Paxos *paxos, string service_name, + version_t fc, version_t lc) { return *_dout << "mon." << mon->name << "@" << mon->rank << "(" << mon->get_state_name() - << ").paxosservice(" << service_name << ") "; + << ").paxosservice(" << service_name << " " << fc << ".." << lc << ") "; } bool PaxosService::dispatch(PaxosServiceMessage *m) @@ -260,9 +261,6 @@ void PaxosService::_active() } dout(10) << "_active" << dendl; - // pull latest from paxos - refresh(); - scrub(); // create pending state?