BUG/MINOR: check: do not reset check flags on purge
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 10 Aug 2021 14:21:55 +0000 (16:21 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Aug 2021 12:33:34 +0000 (14:33 +0200)
commit25fe1033cba2916f21d5ea3b4ccd6c74b56350e9
tree50a8a02ecc05d85f3d5dfa24c4ce3f3303ff8bd2
parent6807c7f6e14f79657a713e6a86513b8573ed5854
BUG/MINOR: check: do not reset check flags on purge

Do not reset check flags when setting CHK_ST_PURGE.

Currently, this change has no impact. However, it is semantically wrong
to clear important flags such as CHK_ST_AGENT on purge.

Furthermore, this change will become mandatoy for a future fix to
properly free agent checks on dynamic servers removal. For this, it will
be needed to differentiate health/agent-check on purge via CHK_ST_AGENT
to properly free agent checks.

This must not be backported unless dynamic servers checks are
backported.
src/check.c