mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-02 21:28:46 +00:00
Totem spec is clear:
reject retransmitted tokens if token.aru = aru in token on last rotation ... do some logic Here is how the current code works: last_aru = instance->my_last_aru; instance->my_last_aru = token->aru; reject retransmitted tokens if token.aru = aru in token on last rotation ... do some logic The issue is last_aru will be set to token->aru when a token retransmission occurs before a new token arrives. This results in the "do some logic" part happening more often then it should. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2917 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
3b457d30c7
commit
79c60fd0ad
@ -3425,9 +3425,6 @@ static int message_handler_orf_token (
|
||||
*/
|
||||
|
||||
case MEMB_STATE_RECOVERY:
|
||||
last_aru = instance->my_last_aru;
|
||||
instance->my_last_aru = token->aru;
|
||||
|
||||
/*
|
||||
* Discard tokens from another configuration
|
||||
*/
|
||||
@ -3468,6 +3465,8 @@ static int message_handler_orf_token (
|
||||
|
||||
return (0); /* discard token */
|
||||
}
|
||||
last_aru = instance->my_last_aru;
|
||||
instance->my_last_aru = token->aru;
|
||||
|
||||
transmits_allowed = fcc_calculate (instance, token);
|
||||
mcasted_retransmit = orf_token_rtr (instance, token, &transmits_allowed);
|
||||
|
Loading…
Reference in New Issue
Block a user