]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mworker: "program" section does not have a post_section_parser anymore
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 12 Feb 2025 11:29:48 +0000 (12:29 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 12 Feb 2025 11:37:01 +0000 (12:37 +0100)
The "program" section does not have a post_section_parser anymore so no
need to make an exception for it.

src/cfgparse.c

index cbd006bb7da585d6569dd093530ff46b08647bee..bf8bd14e82c7478b1b27883bacc0996a5c0721da 100644 (file)
@@ -2576,8 +2576,8 @@ next_line:
                if (pcs && pcs->post_section_parser) {
                        int status;
 
-                       /* don't call post_section_parser in MODE_DISCOVERY, except program section */
-                       if ((global.mode & MODE_DISCOVERY) && (strcmp(pcs->section_name, "program") != 0))
+                       /* don't call post_section_parser in MODE_DISCOVERY */
+                       if (global.mode & MODE_DISCOVERY)
                                goto section_parser;
 
                        status = pcs->post_section_parser();