From 6bc9a544b62bb21f6ee7ef51bfbe9111f7add9cb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 10 Nov 2011 21:58:53 -0800 Subject: [PATCH] mon: elector: always start election via monitor Don't go from active -> electing without passing (monitor) go. Signed-off-by: Sage Weil --- src/mon/Elector.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mon/Elector.cc b/src/mon/Elector.cc index c1c7cc2342206..928e7f2e2f093 100644 --- a/src/mon/Elector.cc +++ b/src/mon/Elector.cc @@ -195,8 +195,10 @@ void Elector::handle_propose(MMonElection *m) dout(5) << "no, we already acked " << leader_acked << dendl; } else { // wait, i should win! - if (!electing_me) - start(); + if (!electing_me) { + mon->reset(); + mon->start_election(); + } } } else { // they would win over me -- 2.39.5