mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-19 04:07:04 +00:00
MINOR: cfgparse-global: parse options to allow non std keywords in discovery mode
'Program' section is considered as deprecated now, see the commit 581c8a27d9
("MEDIUM: mworker: depreciate the 'program' section"). So, the 'program'
section parser emits a warning every time since this commit, if its section is
presented. This makes impossible to launch the process in zero-warning mode.
After master-worker refactoring only the master process parses the 'program'
section. So, at first, in order to be able to start in zero-warning mode, we
need to parse in master process option, which allows deprecated keywords. Thus,
let's set in this commit KWF_DISCOVERY flag to
cfg_parse_global_non_std_directives parser, which parses
'expose-deprecated-directives' and 'expose-deprecated-directives' options.
This commit is contained in:
parent
f8d3d2e4cf
commit
39ea0df38f
@ -1633,7 +1633,7 @@ static struct cfg_kw_list cfg_kws = {ILH, {
|
||||
{ CFG_GLOBAL, "noevports", cfg_parse_global_disable_poller, KWF_DISCOVERY },
|
||||
{ CFG_GLOBAL, "nopoll", cfg_parse_global_disable_poller, KWF_DISCOVERY },
|
||||
{ CFG_GLOBAL, "pidfile", cfg_parse_global_pidfile, KWF_DISCOVERY },
|
||||
{ CFG_GLOBAL, "expose-deprecated-directives", cfg_parse_global_non_std_directives },
|
||||
{ CFG_GLOBAL, "expose-deprecated-directives", cfg_parse_global_non_std_directives, KWF_DISCOVERY },
|
||||
{ CFG_GLOBAL, "expose-experimental-directives", cfg_parse_global_non_std_directives },
|
||||
{ CFG_GLOBAL, "tune.runqueue-depth", cfg_parse_global_tune_opts },
|
||||
{ CFG_GLOBAL, "tune.maxpollevents", cfg_parse_global_tune_opts },
|
||||
|
Loading…
Reference in New Issue
Block a user