]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker-prog: don't warn about deprecated section with expose-deprecated...
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 19 Nov 2024 09:32:28 +0000 (10:32 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 19 Nov 2024 13:13:30 +0000 (14:13 +0100)
commitb9536717cdf880b82d1ad404606c95d0426fb1b9
tree6acba8b23579bca4bf0ec1bcd75ef196320a6148
parent39ea0df38ffc44a8d78a5524f50d22b25cd78101
BUG/MINOR: mworker-prog: don't warn about deprecated section with expose-deprecated-directives

As master parses now expose-deprecated-directives option, let's emit warning
about deprecated 'progam' section only in case, if this option wasn't set in
the 'global' section. This allows to people, who don't prefer to remove the
'program' section immediately to continue to start the process in zero-warning
mode.

Adjust the warning message accordingly and mcli_start_progs.vtc test. As
expose-deprecated-directives option is a 'global' section keyword, this section
must always precede any 'program' section, if users still continue to keep
'program' section.

This doesn't need to be backported, as related to the latest changes in
the master-worker architecture.
reg-tests/mcli/mcli_start_progs.vtc
src/mworker-prog.c