From efc4b1268ed0c5222df183db4a3a6dcf02df1026 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 19 Mar 2013 10:15:41 -0700 Subject: [PATCH] mon/Paxos: set state to RECOVERING during restart This ensures that the paxos state is not active when the PaxosService restart() methods run right afterwards, and that EAGAIN waiters will get requeued appropriately. Signed-off-by: Sage Weil --- src/mon/Paxos.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 1a21ff37b173b..41214a0335d7c 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -1125,6 +1125,7 @@ void Paxos::restart() if (!proposals.empty()) proposals.clear(); + state = STATE_RECOVERING; going_to_bootstrap = false; finish_contexts(g_ceph_context, waiting_for_commit, -EAGAIN); -- 2.39.5