]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: finish to set up servers outside of the proxy setup loop
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 09:48:42 +0000 (10:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 14:00:24 +0000 (15:00 +0100)
commit4cdac166e0837d9d658b0f8e1419e9a9e365470f
treebfebda8772a3bac744affc2225618731bb7e1918
parent198e92a8e5ec0150f1e9ea7c3f12f927a6acebac
MINOR: cfgparse: finish to set up servers outside of the proxy setup loop

Till now servers were only initialized as part of the proxy setup loop,
which doesn't cover peers, tcp log, dns, lua etc. Let's move this part
out of this loop and instead iterate over all registered servers. This
way we're certain to visit them all.

The patch looks big but it's just a move of a large block with the
corresponding reindent (as can be checked with diff -b). It relies
on the two previous ones ("MINOR: server: add a global list of all
known servers and" and "CLEANUP: lua: set a dummy file name and line
number on the dummy servers").
src/cfgparse.c