ctdb-recoverd: Consistently have caller set election-in-progress
commit9b3fab052bd2dccf2fc3fe9bd2b4354dff0b9ebb
authorMartin Schwenke <martin@meltin.net>
Sat, 22 Jan 2022 18:49:18 +0000 (23 05:49 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Feb 2022 01:47:31 +0000 (14 01:47 +0000)
treea2fdd871e3961a19e0208b35572ad60e39888d38
parent188a9021565bc2c1bec1d7a4830d6f47cdbc44a9
ctdb-recoverd: Consistently have caller set election-in-progress

The problem here is that election-in-progress must be set to
potentially avoid restarting the election broadcast timeout in
main_loop(), so this is already done by leader_handler().

Have force_election() set election-in-progress for all election types
and do not bother setting it in cluster_lock_election().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14958

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_recoverd.c