MINOR: cfgparse: diag for multiple nbthread statements
Output a diagnostic report if the nbthread statement is defined on
several places in the configuration.
diff --git a/src/cfgparse-global.c b/src/cfgparse-global.c
index 72b11c0..e076247 100644
--- a/src/cfgparse-global.c
+++ b/src/cfgparse-global.c
@@ -579,6 +579,11 @@
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
+
+ HA_DIAG_WARNING_COND(global.nbthread,
+ "parsing [%s:%d] : nbthread is already defined and will be overridden.\n",
+ file, linenum);
+
global.nbthread = parse_nbthread(args[1], &errmsg);
if (!global.nbthread) {
ha_alert("parsing [%s:%d] : '%s' %s.\n",