This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL5 - clogd: Fix bug 474179 - Prepared checkpoints notdelivered


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bf300eec26fbb61bc20ce08a4eae3e7c8e5df886
Commit:        bf300eec26fbb61bc20ce08a4eae3e7c8e5df886
Parent:        116b8d72fdde451a53838b21e4b713e05b822016
Author:        Jonathan Brassow <jbrassow@redhat.com>
AuthorDate:    Wed Dec 3 15:55:44 2008 -0600
Committer:     Jonathan Brassow <jbrassow@redhat.com>
CommitterDate: Wed Dec 3 15:55:44 2008 -0600

clogd:  Fix bug 474179 - Prepared checkpoints not delivered

In some cases, a new checkpoint could be created, but not
added to the delivery list.  This results in in-coming nodes
stalling (and a memory leak).
---
 cmirror/src/cluster.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmirror/src/cluster.c b/cmirror/src/cluster.c
index f6a2140..ce2cd91 100644
--- a/cmirror/src/cluster.c
+++ b/cmirror/src/cluster.c
@@ -935,6 +935,8 @@ static void cpg_message_callback(cpg_handle_t handle, struct cpg_name *gname,
 						}
 						LOG_COND(log_checkpoint, "[%s] Checkpoint prepared for %u",
 							 SHORT_UUID(tfr->uuid), tmp_tfr->originator);
+						new->next = match->checkpoint_list;
+						match->checkpoint_list = new;
 					} else {
 						LOG_DBG("[%s] Processing delayed request: %s",
 							SHORT_UUID(tmp_tfr->uuid),


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]