mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 08:12:51 -04:00
BUG/MEDIUM: checks: external checks can't change server status to UP
Mark Brooks reported an issue with external healthchecks, where servers are never marked as UP. This is due to a typo, which flags a successful check as CHK_RES_FAILED instead of CHK_RES_PASSED. This bug is specific to the 1.6 branch.
This commit is contained in:
parent
6bcb0a84e7
commit
77010d8006
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ static const struct check_status check_statuses[HCHK_STATUS_SIZE] = {
|
|||
|
||||
[HCHK_STATUS_PROCERR] = { CHK_RES_FAILED, "PROCERR", "External check error" },
|
||||
[HCHK_STATUS_PROCTOUT] = { CHK_RES_FAILED, "PROCTOUT", "External check timeout" },
|
||||
[HCHK_STATUS_PROCOK] = { CHK_RES_FAILED, "PROCOK", "External check passed" },
|
||||
[HCHK_STATUS_PROCOK] = { CHK_RES_PASSED, "PROCOK", "External check passed" },
|
||||
};
|
||||
|
||||
static const struct analyze_status analyze_statuses[HANA_STATUS_SIZE] = { /* 0: ignore, 1: error, 2: OK */
|
||||
|
|
|
|||
Loading…
Reference in a new issue