]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: state-file: do not store duplicates in the global tree
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Dec 2019 16:23:40 +0000 (17:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Dec 2019 16:23:40 +0000 (17:23 +0100)
commitfd1aa01f72d98760ae8c1bfbfc66351875df3380
tree413fc0591f0820c5793c176db215ca14b8d68520
parent7d6a1fa311312bb99b98f548399fc30fc7802ad7
BUG/MINOR: state-file: do not store duplicates in the global tree

The global state file tree isn't configured for unique keys, so if an
entry appears multiple times, e.g. due to a bogus script that concatenates
entries multiple times, this will needlessly eat memory. Let's just drop
duplicates.

This should be backported to 2.1.
src/server.c