mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-06 19:38:22 +00:00
MINOR: check: Always increment check health counter on CONPASS
Regarding the health counter, a check finished with the CONDPASS result is now the same than with the PASSED result: The health counter is always incemented. Before, it was only performed is the health counter was not 0. There is no change for the disable-on-404 option because it is only evaluated for running or stopping servers. So with an health check counter greater than 0. But it will make possible to handle (STOPPED -> STOPPING) transition for servers.
This commit is contained in:
parent
97b7bdfcf7
commit
1e527cbf53
@ -269,9 +269,8 @@ void set_server_check_status(struct check *check, short status, const char *desc
|
||||
break;
|
||||
|
||||
case CHK_RES_PASSED:
|
||||
case CHK_RES_CONDPASS: /* "condpass" cannot make the first step but it OK after a "passed" */
|
||||
if ((check->health < check->rise + check->fall - 1) &&
|
||||
(check->result == CHK_RES_PASSED || check->health > 0)) {
|
||||
case CHK_RES_CONDPASS:
|
||||
if (check->health < check->rise + check->fall - 1) {
|
||||
report = 1;
|
||||
check->health++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user