]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stats: fix crash on 'dump stats-file'
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 13:58:42 +0000 (15:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 14:04:21 +0000 (16:04 +0200)
commit352db46b0856b3eb204f1b0ed5bc985f9a509dfb
tree0201348f462a27e553285bdbdffca92dded3b8a6
parent85c3f3c1fd0003bc972f61dbf23a25cf9ed93ef6
BUG/MEDIUM: stats: fix crash on 'dump stats-file'

A crash occurs immediately when stats-file dump is requested by the
command-line. The issue is caused by the introduction of watchers when
iterating over the proxies list, which is now required with dynamic
backends.

  commit 20376c54e2166a0882b71b26326360786f79ebdb
  MINOR: stats: protect proxy iteration via watcher

The above patch initializes the new proxy watcher for stats dump and
HTML. However, this was forgotten for stats-file command context. Fix
this by adding the missing watcher_init() in cli_parse_show_stat().

No need to backport.
src/stats.c