From 759c8c5937269bed24c53b6a9107f3c201a52f77 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 31 Jan 2011 17:40:26 +1100 Subject: [PATCH] If the node is stopped, put a log entry in /var/log/* to indicate this is why we never become ready --- server/ctdb_monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/ctdb_monitor.c b/server/ctdb_monitor.c index fa642fb3..f96dde48 100644 --- a/server/ctdb_monitor.c +++ b/server/ctdb_monitor.c @@ -224,6 +224,9 @@ static void ctdb_wait_until_recovered(struct event_context *ev, struct timed_eve int ret; DEBUG(DEBUG_NOTICE,("CTDB_WAIT_UNTIL_RECOVERED\n")); + if (ctdb->nodes[ctdb->pnn]->flags & NODE_FLAGS_STOPPED) { + DEBUG(DEBUG_NOTICE,("Node is STOPPED. Node will NOT recover.\n")); + } if (ctdb->vnn_map->generation == INVALID_GENERATION) { ctdb->db_persistent_startup_generation = INVALID_GENERATION; -- 2.34.1