mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 00:14:31 +00:00
BUG/MAJOR: check: fix haproxy crash during soft-stop/soft-start
This is the continuation of previous fix bc16cd8
"BUG/MAJOR: fix haproxy
crash when using server tracking instead of checks", the soft-stop/start
states were not addressed by this fix.
This commit is contained in:
parent
bc16cd81c4
commit
81cf08c5cd
@ -576,7 +576,7 @@ static void set_server_disabled(struct check *check) {
|
||||
|
||||
if (s->state & SRV_CHECKED)
|
||||
for(srv = s->tracknext; srv; srv = srv->tracknext)
|
||||
set_server_disabled(check);
|
||||
set_server_disabled(&srv->check);
|
||||
}
|
||||
|
||||
static void set_server_enabled(struct check *check) {
|
||||
@ -610,7 +610,7 @@ static void set_server_enabled(struct check *check) {
|
||||
|
||||
if (s->state & SRV_CHECKED)
|
||||
for(srv = s->tracknext; srv; srv = srv->tracknext)
|
||||
set_server_enabled(check);
|
||||
set_server_enabled(&srv->check);
|
||||
}
|
||||
|
||||
static void check_failed(struct check *check)
|
||||
|
Loading…
Reference in New Issue
Block a user