]> git.kaiwu.me - haproxy.git/commit
MINOR: counters: Introduce COUNTERS_UPDATE_MAX()
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 3 Mar 2026 15:50:18 +0000 (16:50 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 5 Mar 2026 14:39:42 +0000 (15:39 +0100)
commit00876511287184e5c0ae14d37f2f99261da0ef27
treea02f68f8a45d50d4ed532d686900eb4808d0e52a
parent65d3416da54c3583d4807e47b0a407184aa5f97c
MINOR: counters: Introduce COUNTERS_UPDATE_MAX()

Introduce COUNTERS_UPDATE_MAX(), and use it instead of using
HA_ATOMIC_UPDATE_MAX() directly.
For now it just calls HA_ATOMIC_UPDATE_MAX(), but will later be modified
so that we can disable max calculation.
This can be backported up to 2.8 if the usage of COUNTERS_UPDATE_MAX()
generates too many conflicts.
include/haproxy/counters.h
include/haproxy/proxy.h
include/haproxy/server.h
src/backend.c
src/listener.c
src/proxy.c
src/stream.c