]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: Fix Lua's `get_stats` function
authorTim Duesterhus <tim@bastelstu.be>
Thu, 1 Jun 2023 16:58:08 +0000 (18:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2023 06:29:25 +0000 (08:29 +0200)
commit33a4461fa9a0a57f33a0c34055c1592cf70fca38
tree7875eabdfe7a0c07ce71e1ac7c6afd8ddba8a757
parentcb6a35fdc143e2f52597934b18b7dbe44e60a6b2
BUG/MINOR: stats: Fix Lua's `get_stats` function

Lua's `get_stats` function stopped working in
4cfb0019e65bce79953164eddf54c1bbb61add62, due to the addition a new field
ST_F_PROTO without a corresponding entry in `stat_fields`.

Fix the issue by adding the entry, like
a46b142e8807ea640e041d3a29e3fd427844d559 did previously for a different field.

This patch fixes GitHub Issue #2174, it should be backported to 2.8.
src/stats.c