From 6ae6f6e2846c62dd2752b4df95f0e442578b49fc Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 21 Sep 2009 18:27:37 +0000 Subject: [PATCH] Fix abort with multiple cpg clients under heavy load. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2467 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totempg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/totempg.c b/exec/totempg.c index 77f532b1..ed4c2863 100644 --- a/exec/totempg.c +++ b/exec/totempg.c @@ -153,7 +153,7 @@ static unsigned short mcast_packed_msg_lens[FRAME_SIZE_MAX]; static int mcast_packed_msg_count = 0; -static int totempg_reserved = 0; +static int totempg_reserved = 1; static unsigned int totempg_size_limit; @@ -931,7 +931,7 @@ static int msg_count_send_ok ( avail = totemmrp_avail (); - return (avail > msg_count); + return ((avail - totempg_reserved) > msg_count); } static int byte_count_send_ok (