mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
BUG/MEDIUM: peers: Don't set PEERS_F_RESYNC_PROCESS flag on a peer
The bug was introduced by commit 9425aeaffb
("BUG/MAJOR: peers: Update peers
section state from a thread-safe manner"). A peers flags was set on a peer
by error. Just remove it.
This patch must only be backported if the above commit is backported.
This commit is contained in:
parent
64d20fc9e0
commit
c0b2015aae
@ -3405,7 +3405,7 @@ static void __process_peer_state(struct peers *peers, struct peer *peer)
|
||||
if ((peers->flags & PEERS_RESYNC_STATEMASK) == PEERS_RESYNC_FROMLOCAL &&
|
||||
!(peers->flags & PEERS_F_RESYNC_ASSIGN)) {
|
||||
/* assign local peer for a lesson, consider lesson already requested */
|
||||
peer->flags |= (PEER_F_LEARN_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
||||
peer->flags |= PEER_F_LEARN_ASSIGN;
|
||||
peers->flags |= (PEERS_F_RESYNC_ASSIGN|PEERS_F_RESYNC_PROCESS);
|
||||
peers->flags |= PEERS_F_RESYNC_LOCALASSIGN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user