]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: init: move apply_server_state in haproxy.c before MODE_CHECK
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 2 Nov 2016 14:33:15 +0000 (15:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 13:24:20 +0000 (14:24 +0100)
commit4215d7d0336b40e934bb30f4524d4bbe58a8a5f6
treeeae2aa1f772bd55f5a5ec1d0b7938c674403c579
parentceccdd78a716ec4624a72432308323dcb4744146
MINOR: init: move apply_server_state in haproxy.c before MODE_CHECK

Currently, the function which applies server states provided by the
"old" process is applied after configuration sanity check. This results
in the impossibility to check the validity of the state file during a
regular config check, implying a full start is required, which can be
a problem sometimes.

This patch moves the loading of server_state file before MODE_CHECK.
src/haproxy.c