Просмотр исходного кода

defect 837
Muni reported the token retransmission timer doesn't need to be reset when
receiving a retransmission


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@805 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 лет назад
Родитель
Сommit
81b2984094
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      exec/totemsrp.c

+ 7 - 1
exec/totemsrp.c

@@ -2665,7 +2665,13 @@ if (random () % 100 < 10) {
 		 * Discard retransmitted tokens
 		 * Discard retransmitted tokens
 		 */
 		 */
 		if (instance->my_token_seq >= token->token_seq) {
 		if (instance->my_token_seq >= token->token_seq) {
-			reset_token_retransmit_timeout (instance);
+			/*
+			 * If this processor receives a retransmitted token, it is sure
+		 	 * the previous processor is still alive.  As a result, it can
+			 * reset its token timeout.  If some processor previous to that
+			 * has failed, it will eventually not execute a reset of the
+			 * token timeout, and will cause a reconfiguration to occur.
+			 */
 			reset_token_timeout (instance);
 			reset_token_timeout (instance);
 			return (0); /* discard token */
 			return (0); /* discard token */
 		}		
 		}