]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: diag: run the final diags before quitting when using -c
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Feb 2024 11:05:08 +0000 (12:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Feb 2024 11:08:11 +0000 (12:08 +0100)
commit75d64c0d4c9c3efb0e0c9048175231887460e8af
tree14663a319d58234af54781bf5c5412fabf5c5817
parentced41484018835bacab2bd74506edc8aac05b1ce
BUG/MINOR: diag: run the final diags before quitting when using -c

Final diags were added in 2.4 by commit 5a6926dcf ("MINOR: diag: create
cfgdiag module"), but it's called too late in the startup process,
because when "-c" is passed, the call is not made, while it's its primary
use case. Let's just move the call earlier.

Note that currently the check in this function is limited to verifying
unicity of server cookies in a backend, so it can be backported as far
as 2.4, but there is little value in insisting if it doesn't backport
easily.
src/haproxy.c