]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: fixing stat shows disabled frontend status as 'OPEN'
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 9 Sep 2022 13:58:57 +0000 (15:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Sep 2022 15:24:22 +0000 (17:24 +0200)
commitcddec0aef526f2dc64bad5a83ad788d60c12639c
treea5a529c4da9e5864254e6df2bec7f00a2de4e986
parentd46f437de69d5d4d84a207531a3ba6f8d3d697dc
BUG/MINOR: stats: fixing stat shows disabled frontend status as 'OPEN'

This patch adresses the issue #1626.

Adding support for PR_FL_PAUSED flag in the function stats_fill_fe_stats().
The command 'show stat' now properly reports a disabled frontend
using "PAUSED" state label.

This patch depends on the following commits:
  - 7d00077fd5 "BUG/MEDIUM: proxy: ensure pause_proxy()
  and resume_proxy() own PROXY_LOCK".
  - 001328873c "MINOR: listener: small API change"
  - d46f437de6 "MINOR: proxy/listener: support for additional PAUSED state"

It should be backported to 2.6, 2.5 and 2.4
src/stats.c