Otherwise you never reset the leader_acked after a failed
election attempt, so if mon 0 is available on the first round
but then fails, you never make progress!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
// clear up some state
electing_me = false;
acked_me.clear();
- leader_acked = -1;
}
start_stamp = ceph_clock_now(g_ceph_context);
electing_me = true;
acked_me.insert(mon->rank);
+ leader_acked = -1;
// bcast to everyone else
for (unsigned i=0; i<mon->monmap->size(); ++i) {