mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-07 10:18:01 +00: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
@ -579,6 +579,11 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
|
|||||||
err_code |= ERR_ALERT | ERR_FATAL;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto out;
|
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);
|
global.nbthread = parse_nbthread(args[1], &errmsg);
|
||||||
if (!global.nbthread) {
|
if (!global.nbthread) {
|
||||||
ha_alert("parsing [%s:%d] : '%s' %s.\n",
|
ha_alert("parsing [%s:%d] : '%s' %s.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user