]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: report a warning when multiple servers have the same name
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Jan 2014 11:14:34 +0000 (12:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Jan 2014 11:20:22 +0000 (12:20 +0100)
commit17edc81e7ec5972305f819a08ff2574839d7a53a
tree93699a7392e9591c6bcb510fdae048b4da165acf
parent2b028dd828cdb5ed88be856115395296634c6fa6
MEDIUM: config: report a warning when multiple servers have the same name

A config where multiple servers have the same name in the same backend is
prone to a number of issues : logs are not really exploitable, stats get
really tricky and even harder to change, etc...

In fact, it can be safe to have the same name between multiple servers only
when their respective IDs are known and used. So now we detect this situation
and emit a warning for the first conflict detected per server if any of the
servers uses an automatic ID.
src/cfgparse.c