]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: reject conflicts in table names
authorWilly Tarreau <w@1wt.eu>
Tue, 26 May 2015 08:49:46 +0000 (10:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2015 08:49:46 +0000 (10:49 +0200)
commite45288c0caae2595ed94b16743e3df72a19ca969
tree9135c68421285a49bb971bec25efcf2bf02675e1
parent911fa2eb8ea9565931864a0a67c9c2d72800eb61
MEDIUM: config: reject conflicts in table names

A nasty situation happens when two tables have the same name. Since it
is possible to declare a table in a frontend and another one in a backend,
this situation may happen and result in a random behaviour each time a
table is designated in a "stick" or "track" rule. Let's make sure this
is properly detected and stopped. Such a config will now report :

[ALERT] 145/104933 (31571) : parsing [prx.cfg:36] : stick-table name 't' conflicts with table declared in frontend 't' at prx.cfg:30.
[ALERT] 145/104933 (31571) : Error(s) found in configuration file : prx.cfg
[ALERT] 145/104933 (31571) : Fatal errors found in configuration.
src/cfgparse.c