If the node is stopped, put a log entry in /var/log/* to indicate this is why we...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 31 Jan 2011 06:40:26 +0000 (17:40 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 31 Jan 2011 06:40:26 +0000 (17:40 +1100)
server/ctdb_monitor.c

index fa642fb3fd7269a98a9267a5c58cbbf61976a86f..f96dde48020a4e4de73e153bc554e5449f8ac050 100644 (file)
@@ -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;