]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Reorder and slightly rename PEER flags
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 06:43:21 +0000 (08:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:58 +0000 (18:29 +0200)
commit17c4030aaaf3ae0fe4b438ec7042b23ef9622e2c
treeea147cc13912ff9b9b785639f5228004977603ea
parent9934eebc1923731275707228ee6890e900686084
MINOR: peers: Reorder and slightly rename PEER flags

There are too many holes in peer flags. So let's reorder them. In addition,
PEER_F_RESYNC_REQUESTED flag was renamed to PEER_F_DBG_RESYNC_REQUESTED to
clearly state it is a flag set for debugging purpose.

Finally, PEER_TEACH_RESET was replaced by PEER_TEACH_FLAGS and the bitwise
complement operator is now used on lines updating the peer flags. It is a
far more common way to do (in HAProxy code at least) and less surprising.
src/peers.c