git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d2f56d
)
ctdb-locking: Run debug locks script only if the node is active
author
Amitay Isaacs
<amitay@gmail.com>
Mon, 11 Aug 2014 06:43:07 +0000
(16:43 +1000)
committer
Martin Schwenke
<martins@samba.org>
Fri, 5 Sep 2014 05:05:10 +0000
(07:05 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/server/ctdb_lock.c
patch
|
blob
|
history
diff --git
a/ctdb/server/ctdb_lock.c
b/ctdb/server/ctdb_lock.c
index 93137df65f112ff9d14ea5f00c7c4221db0e1397..84c0de77eee1e68ebcb3574106169eca0b033c0d 100644
(file)
--- 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",