Rev 735: show start/stop time of recovery on all nodes in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Mon Jan 7 22:30:12 GMT 2008


------------------------------------------------------------
revno: 735
revision-id:tridge at samba.org-20080107223011-rv6zmphyp5qfqqdt
parent: tridge at samba.org-20080107124107-htph0bfvj51qysac
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.stable
timestamp: Tue 2008-01-08 09:30:11 +1100
message:
  show start/stop time of recovery on all nodes
modified:
  server/ctdb_recover.c          ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1
=== modified file 'server/ctdb_recover.c'
--- a/server/ctdb_recover.c	2008-01-07 03:31:13 +0000
+++ b/server/ctdb_recover.c	2008-01-07 22:30:11 +0000
@@ -509,6 +509,11 @@
 		return -1;
 	}
 
+	if (recmode != ctdb->recovery_mode) {
+		DEBUG(0,(__location__ " Recovery mode set to %s\n", 
+			 recmode==CTDB_RECOVERY_NORMAL?"NORMAL":"ACTIVE"));
+	}
+
 	if (recmode != CTDB_RECOVERY_NORMAL ||
 	    ctdb->recovery_mode != CTDB_RECOVERY_ACTIVE) {
 		ctdb->recovery_mode = recmode;



More information about the samba-cvs mailing list