Skip to contentSkip to conversation

cluster/magma-plugins/sm services.c sm.c

Cluster-devel [email protected] 1 participant 1 message Jan 3, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2007-01-03 21:09:09

Modified files:
magma-plugins/sm: services.c sm.c

Log message:

	Resolves: 201396
	Part 2: Fix a bug in magma-plugins due to a mismatched count if a node died while waiting for a remote request to complete.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/magma-plugins/sm/services.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.4.2.5&r2=1.4.2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/magma-plugins/sm/sm.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.9.2.10&r2=1.9.2.11

magma-plugins/sm/Attic/services.c +3 -2
@@ -252,9 +252,10 @@
 		return NULL;
 	}
 
-	foo->cml_count = group_count;
+	foo->cml_count = group_count < cman_nl.max_members ?
+			 group_count : cman_nl.max_members;
 	for (x = 0, y = 0; (x < cman_nl.max_members) &&
-			   (y < group_count); x++) {
+			   (y < foo->cml_count); x++) {
 		if (!_is_member(member_ids, group_count,
 		    		 cman_nl.nodes[x].node_id))
 			continue;
magma-plugins/sm/Attic/sm.c +1 -1
@@ -36,7 +36,7 @@
 #include <sys/select.h>
 #include <sys/stat.h>
 
-#define MODULE_DESCRIPTION "CMAN/SM Plugin v1.1.7.2"
+#define MODULE_DESCRIPTION "CMAN/SM Plugin v1.1.7.3"
 #define MODULE_AUTHOR      "Lon Hohberger"
 
 #define DLM_LS_NAME	   "Magma"