BUG/MINOR: stats: make "show stat typed desc" work again
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 05:22:27 +0000 (07:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 05:25:22 +0000 (07:25 +0200)
commitfc8e438637aa926e681c8b7f3fa061021dfb2201
treea90027e3fc637bf14bc87621297fe44de117b3e1
parent9abb3176834303486d0fda2fd405d821707cbcdc
BUG/MINOR: stats: make "show stat typed desc" work again

As part of the changes to support per-module stats data in 2.3-dev6
with commit ee63d4bd6 ("MEDIUM: stats: integrate static proxies stats
in new stats"), a small change resulted in the description field to
be replaced by the name field, making it pointless. Let's fix this
back.

This should fix issue #1291. Thanks to Nick Ramirez for reporting this
issue.

This patch can be backported to 2.3.
src/stats.c