ctdb-recovery: Don't trust nodemap obtained from local node
authorAmitay Isaacs <amitay@gmail.com>
Tue, 18 Feb 2020 05:17:00 +0000 (16:17 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 23 Mar 2020 23:45:37 +0000 (23:45 +0000)
commitc6a0ff1bed0265e44fd6135d16bfc41919fe5bf5
tree89633a7c6615592c17dcf69372febac602e9fe13
parent6e2f8756f1bce4dfc7fdc435e082f400116e29ec
ctdb-recovery: Don't trust nodemap obtained from local node

It's possible to have a node stopped, but recovery master not yet
updated flags on the local ctdb daemon when recovery is started.  So do
not trust the list of active nodes obtained from the local node.  Query
the connected nodes to calculate the list of active nodes.

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

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