recoverd: Fix an unclear log message - "Restart recovery process"
authorMartin Schwenke <martin@meltin.net>
Sun, 30 Jun 2013 07:57:33 +0000 (17:57 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 5 Jul 2013 05:52:33 +0000 (15:52 +1000)
When the recovery master notices a node in recovery mode it starts the
recovery process, it doesn't restart it.

Update documentation to match.

Signed-off-by: Martin Schwenke <martin@meltin.net>
doc/recovery-process.txt
server/ctdb_recoverd.c

index 7cfc6789f474e7dd40201b9313c0d5c3b7f4c3e6..333eeb23da998de83cd94dac4c69ccfed0f6175e 100644 (file)
@@ -151,7 +151,7 @@ the recovery master also performs the following tests:
 16, Verify that all CONNECTED nodes in the cluster are in recovery mode NORMAL.
     If one of the nodes were in recovery mode ACTIVE, force a new recovery and restart
     monitoring from 1.
-    "Node:%u was in recovery mode. Restart recovery process"
+    "Node:%u was in recovery mode. Start recovery process"
 
 17, Verify that the filehandle to the recovery lock file is valid.
     If it is not, this may mean a split brain and is a critical error.
index ca0dced75a9e3627b70775cce52cc930a77be546..bdf978e6da1a52b30f70ac375903bdd07f722de7 100644 (file)
@@ -2726,7 +2726,7 @@ static void verify_recmode_normal_callback(struct ctdb_client_control_state *sta
           status field
        */
        if (state->status != CTDB_RECOVERY_NORMAL) {
-               DEBUG(DEBUG_NOTICE, (__location__ " Node:%u was in recovery mode. Restart recovery process\n", state->c->hdr.destnode));
+               DEBUG(DEBUG_NOTICE, ("Node:%u was in recovery mode. Start recovery process\n", state->c->hdr.destnode));
                rmdata->status = MONITOR_RECOVERY_NEEDED;
        }