BUG/MEDIUM: stats: add missing INF_BUILD_INFO definition
authorAdis Nezirovic <anezirovic@haproxy.com>
Fri, 15 Jan 2021 12:12:33 +0000 (13:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 14:48:54 +0000 (15:48 +0100)
commite03f79ae04d8149a4e864cd17a41c03d9f66a04a
tree605fae29ade83acedfcd40a7b64ea5f70fa533e8
parent6c353746617b32b5f1e8ffe16ddcaae1bfff15c2
BUG/MEDIUM: stats: add missing INF_BUILD_INFO definition

commit 5a982a71656ce885be4b1d4b90b8db31204788a1 ("MINOR:
contrib/prometheus-exporter: export build_info") is breaking lua
`core.get_info()`.

This patch makes sure build_info is correctly initialised in all cases.

Reviewed-by: William Dauchy <wdauchy@gmail.com>
(cherry picked from commit b62b78be131de1848d71350d369deac07daf448a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d918314545a1cd3e77447a2e57ede10d7e242a2e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3ddec3ee7d344112b4e4fbde317f8886a20d66a0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/stats.c