From d1c40424f6fd754cc2941b0b42903083af71e087 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Wed, 10 Jun 2009 10:28:47 +1000 Subject: When we ban a node, only drop the IPs on the node being banned, not on every node (This used to be ctdb commit 46e8c3737e6ff54fc80de8e962e922924c27bc35) --- ctdb/server/ctdb_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctdb/server/ctdb_monitor.c') diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 46d9c632293..14da3b77e4b 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -309,7 +309,7 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata) CTDB_SRVID_SET_NODE_FLAGS, indata); /* if we have become banned, we should go into recovery mode */ - if ((node->flags & NODE_FLAGS_BANNED) && !(c->old_flags & NODE_FLAGS_BANNED)) { + if ((node->flags & NODE_FLAGS_BANNED) && !(c->old_flags & NODE_FLAGS_BANNED) && (node->pnn == ctdb->pnn)) { /* make sure we are frozen */ DEBUG(DEBUG_NOTICE,("This node has been banned - forcing freeze and recovery\n")); /* Reset the generation id to 1 to make us ignore any -- cgit