]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: handle shared listener counters preparation from proxy_postcheck()
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 8 Aug 2025 12:56:18 +0000 (14:56 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 27 Aug 2025 10:54:25 +0000 (12:54 +0200)
commit2cd0afb43065df7fc364a79e679d22ae97c37cd1
tree22c2f94b8ee311f9a3c19f2781b0a3ac2b294642
parentcdb97cb73e6c6c5773674e4809c86b731c00d431
MINOR: proxy: handle shared listener counters preparation from proxy_postcheck()

We used to allocate and prepare listener counters from
check_config_validity() all at once. But it isn't correct, since at that
time listeners's guid are not inserted yet, thus
counters_fe_shared_prepare() cannot work correctly, and so does
shm_stats_file_preload() which is meant to be called even earlier.

Thus in this commit (and to prepare for upcoming shm shared counters
preloading patches), we handle the shared listener counters prep in
proxy_postcheck(), which means that between the allocation and the
prep there is the proper window for listener's guid insertion and shm
counters preloading.

No change of behavior expected when shm shared counters are not
actually used.
src/cfgparse.c
src/proxy.c