From: Amaury Denoyelle Date: Fri, 31 Jul 2026 09:26:55 +0000 (+0200) Subject: CLEANUP: server: remove wrong comments about server-template ID X-Git-Tag: v3.5-dev4~33 X-Git-Url: https://git.kaiwu.me/$%7BGITURL%7D/doc/static/gitweb.js?a=commitdiff_plain;h=ea5e5c3c5c7b79c0e54796557416c46e3e51c884;p=haproxy.git CLEANUP: server: remove wrong comments about server-template ID This misleading comment suggests that server field is set to the prefix for a server-template. In fact, this field remains NULL and prefix is set to . --- diff --git a/src/server.c b/src/server.c index 494fa5e60..0f586c24d 100644 --- a/src/server.c +++ b/src/server.c @@ -3740,10 +3740,6 @@ static int _srv_parse_init(struct server **srv, char **args, int *cur_arg, if (parse_flags & SRV_PARSE_DYNAMIC) newsrv->flags |= SRV_F_DYNAMIC; - /* Note: for a server template, its id is its prefix. - * This is a temporary id which will be used for server allocations to come - * after parsing. - */ if (!(parse_flags & SRV_PARSE_TEMPLATE)) newsrv->id = strdup(args[1]); else