1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

ctdb-daemon: Ignore flag changes for disconnected nodes

If this node is not connected to a node then we shouldn't know
anything about it.  The state will be pushed later by the recovery
master.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14784
Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2021-07-27 15:50:54 +10:00 committed by Amitay Isaacs
parent ae10a8a4b7
commit 7f697b1938

View File

@ -471,6 +471,11 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata)
return -1;
}
if (node->flags & NODE_FLAGS_DISCONNECTED) {
DBG_DEBUG("Ignoring flag changes for disconnected node\n");
return 0;
}
/*
* Remember the old flags. We don't care what some other node
* thought the old flags were - that's irrelevant.