]> git.kaiwu.me - haproxy.git/commit
MINOR: server: detect name conflict earlier during parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 31 Jul 2026 14:00:32 +0000 (16:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 Aug 2026 09:13:19 +0000 (11:13 +0200)
commit5e47582a5b0db1d24347cfd0ca13110f88e7fb03
tree368563095efdf67ea60f5c371e386c77ce0db500
parent9bbae558912c4c4d421257fc8f6bad2982fdf4c7
MINOR: server: detect name conflict earlier during parsing

Since 3.3, server name unicity is strictly enforced, even in case of
different numerical IDs.

  d7fad1320eae7efba98135628d0c04af6e15495e
  MAJOR: cfgparse: make sure server names are unique within a backend

This was implemented as a post parsing check via
check_config_validity(). Now, this is performed directly during the
parsing of each new server instances. The main benefit is that it is a
much clearer operation.

Multiple checks are required : in _srv_parse_init() for standard server
and in _srv_parse_tmpl_init() for server-template. Note that the latter
check requires the following patch to ensure errors are properly
reported when duplicating a server-template instance.

  commit 467440a34f81c635ccb33d434328799b027cbf03
  MINOR: server: do not ignore errors during server-template init
src/proxy.c
src/server.c