ctdb-recoverd: Drop leader validation
authorMartin Schwenke <martin@meltin.net>
Fri, 17 Dec 2021 01:54:23 +0000 (12:54 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 17 Jan 2022 10:21:32 +0000 (10:21 +0000)
commitb029ca4d513163c4b0146c2a303130ae2a2581b4
tree831f145470aef212a931ca68cd0d1f62888510de
parent7e53fab0a364426a03932974727c386e750716be
ctdb-recoverd: Drop leader validation

The introduction of the leader broadcast timeout provides an
alternative to the current leader validation.  Using the leader
broadcast may not be as fast but it is more correct.

When the leader node is stopped or banned, the only way of triggering
an election is currently to fetch the leader's node map to check
whether the it is still active.  This is because the leader will no
longer push the node map to other nodes.  However, having all nodes
fetch the node map from an inactive leader may be unreliable.

Most of the other cases are also handled more reliably by the leader
broadcast timeout.

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