]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: Missing stat_field_names (since f21d17bb)
authorAdis Nezirovic <anezirovic@haproxy.com>
Fri, 13 Sep 2019 09:43:03 +0000 (11:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Sep 2019 10:40:50 +0000 (12:40 +0200)
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.

src/stats.c

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