]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: counters: store a tgroup step for extra_counters to access multiple tgroups
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Feb 2026 08:53:13 +0000 (09:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2026 16:03:53 +0000 (17:03 +0100)
commit7ac47910a2cab91baf8b60d9ce024c110aeadd3b
treeb353e46af4fecb88ac8f71438c4521e52f12f1e8
parent04a9f86a857940dddabf3f789bf6927c0f8307f4
MINOR: counters: store a tgroup step for extra_counters to access multiple tgroups

We'll need to permit any user to update its own tgroup's extra counters
instead of the global ones. For this we now store the per-tgroup step
between two consecutive data storages, for when they're stored in a
tgroup array. When shared (e.g. resolvers or listeners), we just store
zero to indicate that it doesn't scale with tgroups. For now only the
registration was handled, it's not used yet.
include/haproxy/counters-t.h
include/haproxy/counters.h
include/haproxy/stats.h
src/proxy.c
src/resolvers.c
src/server.c
src/stats.c