]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: don't tick the PaxosServices if we are currently slurping.
authorGreg Farnum <greg@inktank.com>
Mon, 25 Jun 2012 20:04:15 +0000 (13:04 -0700)
committerSage Weil <sage@inktank.com>
Mon, 25 Jun 2012 21:45:06 +0000 (14:45 -0700)
They aren't prepared to deal with the on-disk state being inconsistent.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/Monitor.cc

index 6861010508e88942c8d91321b17756a8f235f9f8..a75e307e8233999757e6b0533813977dfc33ae89 100644 (file)
@@ -1963,8 +1963,11 @@ void Monitor::tick()
   // ok go.
   dout(11) << "tick" << dendl;
   
-  for (vector<PaxosService*>::iterator p = paxos_service.begin(); p != paxos_service.end(); p++)
-    (*p)->tick();
+  if (!is_slurping()) {
+    for (vector<PaxosService*>::iterator p = paxos_service.begin(); p != paxos_service.end(); p++) {
+      (*p)->tick();
+    }
+  }
   
   // trim sessions
   utime_t now = ceph_clock_now(g_ceph_context);