]> 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>
Fri, 17 Oct 2025 14:38:53 +0000 (16:38 +0200)
commit9babc988dafc1b5534c47b3742d6a2314c732f93
tree5e2ace4d9271891bebaaadf964e558d84bcdbfc2
parentdd4c40a5cb07c1206f92940d7a199000f9e56dab
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