[PATCH] ctdb: improve a debug message in banning code

Michael Adam obnox at samba.org
Tue May 31 23:19:13 UTC 2016


Review appreciated.

Cheers - Michael
-------------- next part --------------
From 5e889e235694ace398e7b2d0ace477ee6abd00cd Mon Sep 17 00:00:00 2001
From: Michael Adam <obnox at samba.org>
Date: Wed, 1 Jun 2016 01:16:23 +0200
Subject: [PATCH] ctdb:banning: improve debug message in ctdb_ban_node_event()

Make it more clear what happens when reading the logs.

Signed-off-by: Michael Adam <obnox at samba.org>
---
 ctdb/server/ctdb_banning.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ctdb/server/ctdb_banning.c b/ctdb/server/ctdb_banning.c
index 5b08b47..b4ea549 100644
--- a/ctdb/server/ctdb_banning.c
+++ b/ctdb/server/ctdb_banning.c
@@ -42,7 +42,8 @@ static void ctdb_ban_node_event(struct tevent_context *ev,
 
 	/* Make sure we were able to freeze databases during banning */
 	if (!ctdb_db_all_frozen(ctdb)) {
-		DEBUG(DEBUG_ERR, ("Banning timed out, but still unable to freeze databases\n"));
+		DEBUG(DEBUG_ERR, ("Banning timed out, but not databases are "
+				  "frozen yet - banning ourselves again.\n"));
 		ctdb_ban_self(ctdb);
 		return;
 	}
-- 
2.5.5

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160601/60d465f6/signature.sig>


More information about the samba-technical mailing list