mirror of
https://github.com/samba-team/samba.git
synced 2025-03-24 10:50:22 +03:00
ctdb-locking: Run debug locks script only if the node is active
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
6d2f56dbaf
commit
d9e4622a44
@ -497,6 +497,10 @@ static void ctdb_lock_timeout_handler(struct tevent_context *ev,
|
||||
lock_ctx = talloc_get_type_abort(private_data, struct lock_context);
|
||||
ctdb = lock_ctx->ctdb;
|
||||
|
||||
/* If a node stopped/banned, don't spam the logs */
|
||||
if (ctdb->nodes[ctdb->pnn]->flags & NODE_FLAGS_INACTIVE) {
|
||||
return;
|
||||
}
|
||||
if (lock_ctx->ctdb_db) {
|
||||
DEBUG(DEBUG_WARNING,
|
||||
("Unable to get %s lock on database %s for %.0lf seconds\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user