diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-01-31 17:40:26 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-02-02 14:09:56 +1100 |
commit | 40bd94bd5e215bb8a530dc86261289b7fd51a2cc (patch) | |
tree | fc7a34105c0239857d795b362a7308ab29f4c796 /ctdb/server/ctdb_monitor.c | |
parent | 0f33605866dcd23410ab1b0565762a6b5a7ecedf (diff) | |
download | samba-40bd94bd5e215bb8a530dc86261289b7fd51a2cc.tar.gz |
If the node is stopped, put a log entry in /var/log/* to indicate this is why we never become ready
(This used to be ctdb commit ef1de8211f83259ea37dcd57562139a3b63d9631)
Diffstat (limited to 'ctdb/server/ctdb_monitor.c')
-rw-r--r-- | ctdb/server/ctdb_monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 416e4c5883f..02f71496641 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -222,6 +222,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; |