projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b01a8d
)
MINOR: cfgparse: diag for multiple nbthread statements
author
Amaury Denoyelle
<adenoyelle@haproxy.com>
Mon, 29 Mar 2021 08:41:15 +0000
(10:41 +0200)
committer
Amaury Denoyelle
<adenoyelle@haproxy.com>
Thu, 1 Apr 2021 16:03:37 +0000
(18:03 +0200)
Output a diagnostic report if the nbthread statement is defined on
several places in the configuration.
src/cfgparse-global.c
patch
|
blob
|
history
diff --git
a/src/cfgparse-global.c
b/src/cfgparse-global.c
index
72b11c0
..
e076247
100644
(file)
--- a/
src/cfgparse-global.c
+++ b/
src/cfgparse-global.c
@@
-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",