]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PaxosService: not active during paxos UPDATING_PREVIOUS 342/head
authorSage Weil <sage@inktank.com>
Fri, 7 Jun 2013 18:41:21 +0000 (11:41 -0700)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 18:27:05 +0000 (11:27 -0700)
Treat this as an extension of the recovery process, e.g.

 RECOVERING -> ACTIVE
or
 RECOVERING -> UPDATING_PREVIOUS -> ACTIVE

and we are not active until we get to "the end" in both cases.

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

index 600c7082054e7f939e28926094f06b568f608f0c..73a7bb56efa65e10a1a1349fb40de46fc689df45 100644 (file)
@@ -518,7 +518,7 @@ public:
   bool is_active() {
     return
       !is_proposing() &&
-      (paxos->is_active() || paxos->is_updating() || paxos->is_updating_previous());
+      (paxos->is_active() || paxos->is_updating());
   }
 
   /**