]> git.ipfire.org Git - thirdparty/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>
Tue, 21 Oct 2025 13:03:24 +0000 (15:03 +0200)
commit94eae33f8e4fd01738b088e0624416daf8da4439
treed925240bd545e355c939b24d58a9f6c0419f8e8f
parentaa8b39a4a4c2b7008ab806f01b18f73fe9884720
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