From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 19 Dec 2006 10:55:57 -0000 Subject: [Cluster-devel] cluster/cman/lib libcman.c Message-ID: <20061219105557.11786.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: pcaulfield at sourceware.org 2006-12-19 10:55:57 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&only_with_tag=RHEL5&r1=1.30.2.1&r2=1.30.2.2 --- cluster/cman/lib/libcman.c 2006/12/01 14:23:03 1.30.2.1 +++ cluster/cman/lib/libcman.c 2006/12/19 10:55:57 1.30.2.2 @@ -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;