]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: cfgparse: make sure server names are unique within a backend
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Jun 2025 13:42:32 +0000 (15:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 23 Jun 2025 13:42:32 +0000 (15:42 +0200)
commitd7fad1320eae7efba98135628d0c04af6e15495e
tree45c428fde6f677ce859201975afab8ea4859202d
parent067be38c0ee18a993a51541179296b45c59d6a31
MAJOR: cfgparse: make sure server names are unique within a backend

There was already a check for this but there used to be an exception
that allowed duplicate server names only in case where their IDs were
explicit and different. This has been emitting a warning since 3.1 and
planned for removal in 3.3, so let's do it now. The doc was updated,
though it never mentioned this unicity constraint, so that was added.

Only the check for the exception was removed, the rest of the code
that is currently made to deal with duplicate server names was not
cleaned yet (e.g. the tree doesn't need to support dups anymore, and
this could be done at insertion time). This may be a subject for future
cleanups.
doc/configuration.txt
src/cfgparse.c