mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-23 20:01:23 +01:00
MINOR: config: Warn only if the option http-use-htx is used with "no" prefix
No warning message is emitted anymore if the option is used to enable the HTX. But it is still diplayed when the "no" prefix is used to disable the HTX explicitly. So, for existing configs, we display a warning only if there is a change in the behavior of HAProxy between the 2.1 and the previous versions.
This commit is contained in:
parent
2ab5c38359
commit
f89f0991f6
@ -2009,10 +2009,12 @@ stats_error_parsing:
|
|||||||
|
|
||||||
/* "[no] option http-use-htx" is deprecated */
|
/* "[no] option http-use-htx" is deprecated */
|
||||||
if (!strcmp(cfg_opts2[optnum].name, "http-use-htx")) {
|
if (!strcmp(cfg_opts2[optnum].name, "http-use-htx")) {
|
||||||
|
if (kwm ==KWM_NO) {
|
||||||
ha_warning("parsing [%s:%d]: option '%s' is deprecated and ignored."
|
ha_warning("parsing [%s:%d]: option '%s' is deprecated and ignored."
|
||||||
" The HTX mode is now the only supported mode.\n",
|
" The HTX mode is now the only supported mode.\n",
|
||||||
file, linenum, cfg_opts2[optnum].name);
|
file, linenum, cfg_opts2[optnum].name);
|
||||||
err_code |= ERR_WARN;
|
err_code |= ERR_WARN;
|
||||||
|
}
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user