From: Martin Schwenke Date: Fri, 9 Jul 2021 05:13:49 +0000 (+1000) Subject: ctdb-daemon: Correct the condition for logging unchanged flags X-Git-Tag: ldb-2.5.0~740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eec44e286250a6ee7b5c42d85d632bdc300a409f;p=thirdparty%2Fsamba.git ctdb-daemon: Correct the condition for logging unchanged flags Don't trust the old flags from the recovery master. Surrounding code will change in future comments, including the use of old-style debug macros, so just make this change clear. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14784 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 5c694bde969..a49162dd9d9 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -484,7 +484,7 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata) } } - if (node->flags == c->old_flags) { + if (node->flags == old_flags) { DEBUG(DEBUG_INFO, ("Control modflags on node %u - Unchanged - flags 0x%x\n", c->pnn, node->flags)); return 0; }