[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman-kernel/src membership.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	pcaulfield sourceware org	2007-09-19 15:01:07

Modified files:
	cman-kernel/src: membership.c 

Log message:
	Add some transition start/end messages so that support can track things
	a bit easier.
	
	Master messages:
	CMAN: Initiating transition, generation 7
	CMAN: Completed transition, generation 7
	
	Slave messages:
	CMAN: Started transition, generation 7
	CMAN: Finished transition, generation 7

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman-kernel/src/membership.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.44.2.27&r2=1.44.2.28

--- cluster/cman-kernel/src/Attic/membership.c	2007/05/03 10:19:01	1.44.2.27
+++ cluster/cman-kernel/src/Attic/membership.c	2007/09/19 15:01:07	1.44.2.28
@@ -923,6 +923,8 @@
 	/* Cancel the timer */
 	del_timer(&transition_timer);
 
+	printk(KERN_INFO CMAN_NAME ": Completed transition, generation %d\n", cluster_generation);
+
 	confirm_joiner();
 
 	quorum = calculate_quorum(leavereason, leavereason?cluster_members:0, &total_votes);
@@ -1346,6 +1348,7 @@
 			strcpy(startbuf + ptr, node->name);
 			ptr += strlen(node->name) + 1;
 		}
+		printk(KERN_INFO CMAN_NAME ": Initiating transition, generation %d\n", cluster_generation);
 
 		/* If another node died then we must queue the STARTTRANS
 		 * messages so that membershipd can carry on processing the
@@ -2069,6 +2072,7 @@
 
 	del_timer(&transition_timer);
 
+	printk(KERN_INFO CMAN_NAME ": Finished transition, generation %d\n", cluster_generation);
 	/* Set our new node id */
 	if (endmsg->new_node_id && us->node_id == 0) {
 		set_nodeid(us, le32_to_cpu(endmsg->new_node_id));
@@ -2169,6 +2173,7 @@
 		return 0;
 	}
 
+	printk(KERN_INFO CMAN_NAME ": Started transition, generation %d\n", newgen);
 	P_MEMB("Got starttrans: newgen = %d, oldgen = %d, reason = %d\n",
 	       newgen, cluster_generation, startmsg->reason);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]