ctdb-recoverd: Always cancel election in progress
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Jan 2022 07:09:47 +0000 (18:09 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Feb 2022 01:47:31 +0000 (01:47 +0000)
commit188a9021565bc2c1bec1d7a4830d6f47cdbc44a9
tree12565dc9fd3b3fd702642c45a45d50d7bc2d1d2d
parent18437fd6a7393642b5f035b016b349988c8b9d83
ctdb-recoverd: Always cancel election in progress

Election-in-progress is set by unknown leader broadcast, so needs to
be cleared in all cases when election completes.

This was seen in a case where the leader node stalled, so didn't send
leader broadcasts for some time.  The node continued to hold the
cluster lock, so another node could not become leader.  However, after
the node returned to normal it still did not send leader broadcasts
because election-in-progress was never cleared.

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