mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: cfgparse: diag for multiple nbthread statements
Output a diagnostic report if the nbthread statement is defined on several places in the configuration.
This commit is contained in:
parent
7b01a8dbdd
commit
c4d47d609a
1 changed files with 5 additions and 0 deletions
|
|
@ -579,6 +579,11 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
|
|||
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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue