]> git.kaiwu.me - haproxy.git/commit
MEDIUM: peers: Add infos in peer structure to know if it is synchronized or not
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Sep 2025 13:46:25 +0000 (15:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Oct 2025 13:17:49 +0000 (14:17 +0100)
commite895761a46e2fa387b7ed919b848968cceaa9b82
treef1a458fc9a91a5d1b1b148d0d5ad16a440a54de9
parent30f18154dfda6919d0a90e80f021993d3f31f28b
MEDIUM: peers: Add infos in peer structure to know if it is synchronized or not

Info about the last update message sent are now saved for each peer. The
shared-table and the update message id are saved. These information are used
when a ack message is received to know if it matches the last update message
sent. When this matches, we are sure the peer as received all updates sent
and is synchronized. This information is saved thanks to the flag
PEER_F_SYNCHED.

So, at any time, we know if a peer is synchronized or not.
include/haproxy/peers-t.h
src/cfgparse.c
src/peers.c