mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 00:32:33 -04:00
BUG/MAJOR: threads/checks: wrong use of SPIN_LOCK instead of SPIN_UNLOCK
Must unlock on exit, copy-paste error.
This commit is contained in:
parent
1c8980f9b5
commit
73247e0757
1 changed files with 1 additions and 1 deletions
|
|
@ -2091,7 +2091,7 @@ static struct task *process_chk_proc(struct task *t)
|
|||
reschedule:
|
||||
while (tick_is_expired(t->expire, now_ms))
|
||||
t->expire = tick_add(t->expire, MS_TO_TICKS(check->inter));
|
||||
SPIN_LOCK(SERVER_LOCK, &check->server->lock);
|
||||
SPIN_UNLOCK(SERVER_LOCK, &check->server->lock);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue