]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: now alert when two servers have the same name
authorWilly Tarreau <w@1wt.eu>
Mon, 27 May 2019 17:31:06 +0000 (19:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 May 2019 17:31:06 +0000 (19:31 +0200)
commitb01302f9ac3f79a405f3100b9bdb4ae900c5e563
treeeb5824e8ae908e53c9299c966e8d5c4dde32532a
parentc3b595825583386bbc28fcd0c77c5ff926fcf345
MEDIUM: config: now alert when two servers have the same name

We've been emitting warnings for over 5 years (since 1.5-dev22) about
configs accidently carrying multiple servers with the same name in the
same backend, and this starts to cause some real trouble in dynamic
environments since it's still very difficult to accurately process
a state-file and we still can't transport a server's name over the
peers protocol because of this.

It's about time to force users to fix their configs if they still
hadn't given that there is zero technical justification for doing this,
beyond the "yyp" (or copy-paste accident) when editing the config.

The message remains as clear as before, indicating the file and lines
of the conflict so that the user can easily fix it.
src/cfgparse.c