BUG/MINOR: Missing stat_field_names (since f21d17bb)

Recently Lua code which uses Proxy class (get_stats method) stopped
working ("table index is nil from [C] method 'get_stats'")
It probably affects other codepaths too.

This should be backported do 2.0 and 1.9.
This commit is contained in:
Adis Nezirovic 2019-09-13 11:43:03 +02:00 committed by Willy Tarreau
parent 1dbc4676c6
commit a46b142e88
1 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,8 @@ const char *stat_field_names[ST_F_TOTAL_FIELDS] = {
[ST_F_REUSE] = "reuse", [ST_F_REUSE] = "reuse",
[ST_F_CACHE_LOOKUPS] = "cache_lookups", [ST_F_CACHE_LOOKUPS] = "cache_lookups",
[ST_F_CACHE_HITS] = "cache_hits", [ST_F_CACHE_HITS] = "cache_hits",
[ST_F_SRV_ICUR] = "srv_icur",
[ST_F_SRV_ILIM] = "src_ilim"
}; };
/* one line of info */ /* one line of info */