BUG/MINOR: server: Remove RMAINT from admin state when loading server state
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Feb 2021 16:36:08 +0000 (17:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Feb 2021 09:23:25 +0000 (10:23 +0100)
commitc611103c9db2ebb842596557d593b1f775c0d628
treecff273a97616e2d39078c20f6de8abda1ca26aaa
parentbfc40dce3a9c75a1a78fb1581cc6e52a891a4a80
BUG/MINOR: server: Remove RMAINT from admin state when loading server state

The RMAINT admin state is dynamic and should be remove from the
srv_admin_state parameter when a server state is loaded from a server-state
file. Otherwise an erorr is reported, the server-state line is ignored and
the server state is not updated.

This patch should fix the issue #576. It must be backported as far as 1.8.

(cherry picked from commit eaab7325a797e61d16a80b2969ab5f9cbd9679c5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c