BUG/MEDIUM: stats-file: shm-stats-file be counters not working anymore · haproxy/haproxy@5c1a297 · GitHub
Skip to content

Commit 5c1a297

Browse files
committed
BUG/MEDIUM: stats-file: shm-stats-file be counters not working anymore
As described in GH #3527, a weird behavior affects backend shared counters where haproxy would restore stats inconsistently. In fact, the described behavior happens because the stats file preloading mechanism is broken for backend objects since 5495c88 ("MEDIUM: counters: Dynamically allocate per-thread group counters") because we checked for the frontend shared map (allocated once per process) instead of the backend one for backend objects, and the frontend map is only allocated for frontends or hybrid proxies, and not backends. This caused the preloading to abort. We fix by checking the relevant backend oriented map instead. It should be backported to 3.4. Thanks to GH user @ssavant2 for his detailed report and patch feedback.
1 parent 37f3ad8 commit 5c1a297

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/stats-file.c‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)