diff options
author | Martin Schwenke <martin@meltin.net> | 2021-07-27 15:50:54 +1000 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-13 11:47:10 +0000 |
commit | 7c353e6e383b408de9d2823b32ff8e0527510d02 (patch) | |
tree | cdc6a7740d79d187cd933813dffd7da33d4ad88e /ctdb | |
parent | 665b380d2490f312c7409a3c9d29572ad3664216 (diff) | |
download | samba-7c353e6e383b408de9d2823b32ff8e0527510d02.tar.gz |
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>
(cherry picked from commit 7f697b1938efb3972f03f25546bf807d5af9a26c)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/server/ctdb_monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 913e2721f98..ab58ec485fe 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -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. |