소스 검색

Merge trunk revision 2842:
r2842 | asalkeld | 2010-05-16 14:40:19 -0700 (Sun, 16 May 2010) | 5 lines

cov 10392: remove pointless assert

backlog is unsigned



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2884 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 15 년 전
부모
커밋
ecf5c1b00e
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      exec/totemsrp.c

+ 4 - 1
exec/totemsrp.c

@@ -3299,7 +3299,6 @@ static void fcc_token_update (
 {
 {
 	token->fcc += msgs_transmitted - instance->my_trc;
 	token->fcc += msgs_transmitted - instance->my_trc;
 	token->backlog += instance->my_cbl - instance->my_pbl;
 	token->backlog += instance->my_cbl - instance->my_pbl;
-	assert (token->backlog >= 0);
 	instance->my_trc = msgs_transmitted;
 	instance->my_trc = msgs_transmitted;
 	instance->my_pbl = instance->my_cbl;
 	instance->my_pbl = instance->my_cbl;
 }
 }
@@ -3416,6 +3415,10 @@ static int message_handler_orf_token (
 
 
 	case MEMB_STATE_OPERATIONAL:
 	case MEMB_STATE_OPERATIONAL:
 		messages_free (instance, token->aru);
 		messages_free (instance, token->aru);
+		/*
+		 * Do NOT add break, this case should also execute code in gather case.
+		 */
+
 	case MEMB_STATE_GATHER:
 	case MEMB_STATE_GATHER:
 		/*
 		/*
 		 * DO NOT add break, we use different free mechanism in recovery state
 		 * DO NOT add break, we use different free mechanism in recovery state