Rev 476: - fixed flags display in logs in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Wed Jun 6 01:13:25 GMT 2007


------------------------------------------------------------
revno: 476
revision-id: tridge at samba.org-20070606011324-nse5zhhtb8xalu59
parent: tridge at samba.org-20070606011245-opmhuwt69ou5uxtm
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Wed 2007-06-06 11:13:24 +1000
message:
  - fixed flags display in logs
  - added monitor handler to test event script
modified:
  common/ctdb_recoverd.c         recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1
  tests/events                   events-20070601105359-jc8p0xp6iq7phful-1
=== modified file 'common/ctdb_recoverd.c'
--- a/common/ctdb_recoverd.c	2007-06-06 00:25:46 +0000
+++ b/common/ctdb_recoverd.c	2007-06-06 01:13:24 +0000
@@ -991,8 +991,7 @@
 		return;
 	}
 
-	DEBUG(0,("Node %u has changed flags - was 0x%x now 0x%x\n", 
-		 c->vnn, nodemap->nodes[i].flags, c->flags));
+	DEBUG(0,("Node %u has changed flags - now 0x%x\n", c->vnn, c->flags));
 
 	nodemap->nodes[i].flags = c->flags;
 	

=== modified file 'tests/events'
--- a/tests/events	2007-06-01 10:54:26 +0000
+++ b/tests/events	2007-06-06 01:13:24 +0000
@@ -5,6 +5,10 @@
 shift
 
 case $cmd in 
+    monitor)
+	echo "`date` monitor event"
+	exit 0
+	;;
      startup)
 	echo "`date` ctdb startup event"
 	exit 0;	



More information about the samba-cvs mailing list