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)
bool is_active() {
return
!is_proposing() &&
- (paxos->is_active() || paxos->is_updating() || paxos->is_updating_previous());
+ (paxos->is_active() || paxos->is_updating());
}
/**