]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server: make sure the HMAINT state is part of MAINT
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Sep 2024 16:38:35 +0000 (18:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Sep 2024 16:40:15 +0000 (18:40 +0200)
commita4d04c649af448cf2a728ebb91837ed69eea6217
tree2b83a864666ae06c848fdde6de9920b8f2aea588
parentb8e3b0a18d59b4f52b4ecb7ae61cef0b8b2402a0
BUG/MINOR: server: make sure the HMAINT state is part of MAINT

In 1.8 when adding "set server fqdn" with commit b418c1228c ("MINOR:
server: cli: Add server FQDNs to server-state file and stats socket."),
the HMAINT flag was not made part of the MAINT ones, so technically
speaking when changing the FQDN, the server is not completely considered
as in maintenance mode.

In its defense, the code location around that was completely messy, with
the aggregator flag being hidden between other values and purposely but
discretely ignoring one of the flags, so the comments were updated to
make the intent clearer (particularly regarding CMAINT which looked like
it was also forgotten while it was on purpose).

This can be backported anywhere.
include/haproxy/server-t.h