From 18326ad24254bb9e4f80e534e624e055f891e9ca Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Sun, 16 May 2010 21:40:19 +0000 Subject: [PATCH] cov 10392: remove pointless assert backlog is unsigned git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2842 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemsrp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/exec/totemsrp.c b/exec/totemsrp.c index 3d8bd052..87868591 100644 --- a/exec/totemsrp.c +++ b/exec/totemsrp.c @@ -3299,7 +3299,6 @@ static void fcc_token_update ( { token->fcc += msgs_transmitted - instance->my_trc; token->backlog += instance->my_cbl - instance->my_pbl; - assert (token->backlog >= 0); instance->my_trc = msgs_transmitted; instance->my_pbl = instance->my_cbl; } @@ -3416,6 +3415,10 @@ static int message_handler_orf_token ( case MEMB_STATE_OPERATIONAL: messages_free (instance, token->aru); + /* + * Do NOT add break, this case should also execute code in gather case. + */ + case MEMB_STATE_GATHER: /* * DO NOT add break, we use different free mechanism in recovery state