]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: fix message report when IDRAIN is set and MAINT is cleared
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 3 May 2023 08:36:54 +0000 (10:36 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commit977688bd57bb170cb8baafc2cc95dc578eb56584
treeb9cb96037461ab68d348481e206dc3cf28e64c31
parenta2c53210454b6aad2f3c4d2c39a83310ce7df19e
MINOR: server: fix message report when IDRAIN is set and MAINT is cleared

Remaining in drain mode after removing one of server admins flags leads
to this message being generated:

"Server name/backend is leaving forced drain but remains in drain mode."

However this is not necessarily true: the server might just be leaving
MAINT with the IDRAIN flag set, so the report is incorrect in this case.
(FDRAIN was not set so it cannot be cleared)

To prevent confusion around this message and to comply with the code
comment above it: we remove the "leaving forced drain" precision to
make the report suitable for multiple transitions.
src/server.c