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

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



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	STABLE
Changes by:	teigland sourceware org	2006-09-25 15:24:36

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

Log message:
	return an error when the global_id counter hits the max
	(sync with RHEL4 branch)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman-kernel/src/sm_joinleave.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.2&r2=1.2.8.1

--- cluster/cman-kernel/src/Attic/sm_joinleave.c	2004/08/18 06:54:16	1.2
+++ cluster/cman-kernel/src/Attic/sm_joinleave.c	2006/09/25 15:24:35	1.2.8.1
@@ -247,6 +247,8 @@
 	} else if (!pos && !wait && !restart && neg) {
 		/* we're the first in the cluster to join this sg */
 		sev->se_sg->global_id = sm_new_global_id(sev->se_sg->level);
+		if (sev->se_sg->global_id == 0)
+			error = -EOVERFLOW;
 	} else
 		error = -1;
 


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