From: Weijun Duan Date: Thu, 14 Jan 2016 02:16:00 +0000 (-0500) Subject: mon: paxos is_recovering calc error X-Git-Tag: v10.0.3~55^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7227%2Fhead;p=ceph.git mon: paxos is_recovering calc error Fix:#14368 Signed-off-by: Weijun Duan --- diff --git a/src/mon/Paxos.h b/src/mon/Paxos.h index 9b9a732dbbcb..4f570275d5dc 100644 --- a/src/mon/Paxos.h +++ b/src/mon/Paxos.h @@ -282,7 +282,7 @@ public: * * @return 'true' if we are on the Recovering state; 'false' otherwise. */ - bool is_recovering() const { return (state & STATE_RECOVERING); } + bool is_recovering() const { return (state == STATE_RECOVERING); } /** * Check if we are active. *