]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: Automatically start to learn on local peer
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Apr 2024 08:18:07 +0000 (10:18 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:57 +0000 (18:29 +0200)
commit3541c5448118df710e8c5d00d8c7ad2a900c0cd3
tree5fed401cdd706d3cfe41c89118bc06660b2cec24
parentd330e3ade55169b44ebdc84dd17c305684b551a2
BUG/MEDIUM: peers: Automatically start to learn on local peer

The previous fix (c0b2015aae "BUG/MEDIUM: peers: Don't set
PEERS_F_RESYNC_PROCESS flag on a peer") was made due to lack of knowledge on
the peers. A local peer, when assigned to learn, must start to learn
immediately without sending any request. This happens on reload.

Thus, in this case, the PEER_F_LEARN_PROCESS flag must be set with
PEER_F_LEARN_ASSIGN flag from the sync task.

This patch must only be backported if the above commit is backported.
src/peers.c