[Cluster-devel] cluster/cman/lib libcman.c

pcaulfield at sourceware.org pcaulfield at sourceware.org
Tue Dec 19 10:55:01 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield at sourceware.org	2006-12-19 10:55:00

Modified files:
	cman/lib       : libcman.c 

Log message:
	Fix bug where cman_dispatch(CMAN_DISPATCH_ONE) could dispatch several
	messages.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/lib/libcman.c.diff?cvsroot=cluster&r1=1.31&r2=1.32

--- cluster/cman/lib/libcman.c	2006/12/01 13:46:57	1.31
+++ cluster/cman/lib/libcman.c	2006/12/19 10:55:00	1.32
@@ -486,7 +486,7 @@
 			h->saved_reply_msg = smsg->next;
 			len = smsg->msg->length;
 			free(smsg);
-			if (res)
+			if (res || (flags & CMAN_DISPATCH_ONE))
 				break;
 			else
 				continue;
@@ -499,7 +499,7 @@
 			h->saved_data_msg = smsg->next;
 			len = smsg->msg->length;
 			free(smsg);
-			if (res)
+			if (res || (flags & CMAN_DISPATCH_ONE))
 				break;
 			else
 				continue;
@@ -512,7 +512,7 @@
 			h->saved_event_msg = smsg->next;
 			len = smsg->msg->length;
 			free(smsg);
-			if (res)
+			if (res || (flags & CMAN_DISPATCH_ONE))
 				break;
 			else
 				continue;




More information about the Cluster-devel mailing list