]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PaxosService: not active during paxos UPDATING_PREVIOUS
authorSage Weil <sage@inktank.com>
Fri, 7 Jun 2013 18:41:21 +0000 (11:41 -0700)
committerSage Weil <sage@inktank.com>
Mon, 24 Jun 2013 23:16:42 +0000 (16:16 -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>
(cherry picked from commit 392a8e21f8571b410c85be2129ef62dd6fc52b54)

src/mon/PaxosService.h

index 5398f20802174c5202dfbb45c6cc61ae290ffba1..63e06110d073c1a43868f4480a977764b323ccd9 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());
   }
 
   /**