]> git.ipfire.org Git - thirdparty/samba.git/commit
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 30 Mar 2020 10:08:25 +0000 (10:08 +0000)
commit3640f428b133d2fe25a153607c842e473add19c8
treeb8f1bf3cd7f8a184b52d2b02b67ea2daae0bc659
parent3fa7d0c2ba40a0f2ba1248c611187870c7af8ffb
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>
(cherry picked from commit c6a0ff1bed0265e44fd6135d16bfc41919fe5bf5)
ctdb/server/ctdb_recovery_helper.c