]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: proxy: add dynamic backend into ID tree
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Feb 2026 13:00:22 +0000 (14:00 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Feb 2026 17:24:36 +0000 (18:24 +0100)
Add missing proxy_index_id() call in "add backend" handler. This step is
responsible to store the newly created proxy instance in the
used_proxy_id global tree.

No need to backport.

src/proxy.c

index 70a2e5add8c05ef58cb5dd5cd78bab78eb631996..22b76e7ae646c540dd23424cb815fd0acd85633f 100644 (file)
@@ -4928,6 +4928,7 @@ static int cli_parse_add_backend(char **args, char *payload, struct appctx *appc
                memprintf(&msg, "no spare proxy ID available");
                goto err;
        }
+       proxy_index_id(px);
        dynpx_next_id = px->uuid;
 
        if (!proxies_list) {