]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Use a static variable to wait a resync on reload
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 08:29:32 +0000 (10:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:58 +0000 (18:29 +0200)
commit608e23c495cfd77615690a92f3f05fa071ba05b2
tree4b53425a2ea6affcd38fe8a79e5774c6585f1098
parentbdcfacdb7894d5ae870550477a70c756853c8b94
MINOR: peers: Use a static variable to wait a resync on reload

When a process is reloaded, the old process must performed a synchronisation
with the new process. To do so, the sync task notify the local peer to
proceed and waits. Internally, the sync task used PEERS_F_DONOTSTOP flag to
know it should wait. However, this flag was only set/unset in a single
function. There is no real reason to set a flag to do so. A static variable
set to 1 when the resync starts and to 0 when it is finished is enough.
include/haproxy/peers-t.h
src/peers.c