]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: init: do MODE_CHECK_CONDITION logic first
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 26 Jun 2024 16:29:47 +0000 (18:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 27 Jun 2024 13:59:43 +0000 (15:59 +0200)
commit10de58fbfbf66db257eeda63df6b4bd892939036
tree94768e9bed36c1b8e8a4f82f07fa5f9e8560ef8f
parentad946a704dc19b1a5aa51692ca7aafb5b015ba7c
REORG: init: do MODE_CHECK_CONDITION logic first

In MODE_CHECK_CONDITION we only parse check_condition string, provided by
'-cc', and then we evaluate it. Haproxy process terminates at the
end of {if..else} block anyway, if the test has failed or passed. So, it
will be more appropriate to perform MODE_CHECK_CONDITION test first and
then do all other process runtime mode verifications.
src/haproxy.c