Skip to contentSkip to conversation

cluster/ccs/daemon cluster_mgr.c

Cluster-devel [email protected] 1 participant 1 message Oct 17, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at 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

ccs/daemon/cluster_mgr.c +3 -1
@@ -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)
   {