BUG/MINOR: mworker: post_section_parser for the last section in discovery
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 12 Feb 2025 11:31:11 +0000 (12:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Feb 2025 09:34:26 +0000 (10:34 +0100)
commitae9799a2c9529b5c7e2e2de7bfc89aa291c42c66
treedb83fa4bb5e7758e60b9fefcb398062ed98aabd6
parent6de38fd64dade31481d8ee590906228c1f8741f4
BUG/MINOR: mworker: post_section_parser for the last section in discovery

Previous patch 2c270a05f ("BUG/MINOR: mworker: section ignored in
discovery after a post_section_parser") needs an adjustment for the last
section of the file.

Indeed the post_section_parser of the last section must not be called in
discovery mode.

Must be backported in 3.1.

(cherry picked from commit 313eeae7dbcafac37ea6710c92de79c992c17d4c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cfgparse.c