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

[Cluster-devel] cluster/ccs/daemon cluster_mgr.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2006-10-17 16:46:53

Modified files:
	ccs/daemon     : cluster_mgr.c 

Log message:
	Get notifications BEFORE getting state otherwise we have a race condition.
	probably fixes bz#210732

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/daemon/cluster_mgr.c.diff?cvsroot=cluster&r1=1.21&r2=1.22

--- cluster/ccs/daemon/cluster_mgr.c	2006/05/10 08:19:11	1.21
+++ cluster/ccs/daemon/cluster_mgr.c	2006/10/17 16:46:53	1.22
@@ -431,6 +431,8 @@
     ppid = 0;
   }
 
+  cman_start_notification(handle, cman_callback);
+
   cman_fd = cman_get_fd(handle);
   quorate = cman_is_quorate(handle);
 
@@ -438,7 +440,7 @@
 
   members = get_member_list(handle);
 
-  cman_start_notification(handle, cman_callback);
+
 
   while (1)
   {


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