MEDIUM: server: Use a tree to store local server-state lines
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Feb 2021 10:32:22 +0000 (11:32 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Feb 2021 09:02:39 +0000 (10:02 +0100)
commit5c3798514998e7302708bb3289af8c08a5ed7399
tree8ca31b96efd2c8185bb0628bf6d52b253f1785a4
parent2c1db104fb8bb4544981e19f14a47fe9e12be9af
MEDIUM: server: Use a tree to store local server-state lines

Just like for the global server-state file, the line of a local server-state
file are now stored in a tree. This way, the file is fully parsed before
loading the servers state. And with this change, global and local
server-state files are now handled the same way. This will be the
opportunity to factorize the code. It is also a good way to validate the
file before loading any server state.
src/server.c