]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: no need to refresh from _active
authorSage Weil <sage@inktank.com>
Fri, 31 May 2013 21:30:48 +0000 (14:30 -0700)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 18:27:03 +0000 (11:27 -0700)
The refresh is done explicitly by the monitor, independent of the more
fragile PaxosService callbacks.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PaxosService.cc

index 71c1ea52790ce4c77fe2e0fec0004052f33765ce..8dc1b42bec5f0356913f1e23477e70f82e9aec0e 100644 (file)
 
 #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?