diff options
author | Amitay Isaacs <amitay@gmail.com> | 2014-08-11 16:43:07 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2014-09-05 07:05:10 +0200 |
commit | d9e4622a446c9ed60771c508638fb89055320f03 (patch) | |
tree | 533d13c97ab933863609355f2bd5f221709ed688 /ctdb/server | |
parent | 6d2f56dbaf84203b351f33179cc3feaf557e0683 (diff) | |
download | samba-d9e4622a446c9ed60771c508638fb89055320f03.tar.gz |
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>
Diffstat (limited to 'ctdb/server')
-rw-r--r-- | ctdb/server/ctdb_lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_lock.c b/ctdb/server/ctdb_lock.c index 93137df65f1..84c0de77eee 100644 --- a/ctdb/server/ctdb_lock.c +++ b/ctdb/server/ctdb_lock.c @@ -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", |