ctdb-recoverd: Call an election when the recovery lock is lost
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Nov 2018 04:49:30 +0000 (15:49 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 18 Dec 2018 01:02:03 +0000 (02:02 +0100)
commitda8aaf2aee2ff145f3001ae1fcf3626d6a9bc17d
treeee91796a32ff183071b8083f4a7824723baf8f6e
parent9d1d5fa4ac3abfe464dda1c7adc4616927855b57
ctdb-recoverd: Call an election when the recovery lock is lost

The lock may have been lost due to a failure in the underlying locking
mechanism.  This could be due to quorum loss or similar.  It is best
to call an election to confirm that this node should still be master.
At worst, the node will reelect itself, fail to take the lock and then
ban itself.  This is a suitable outcome for a node that has been
partitioned from others in the cluster.

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