commit | 73247e0757eaf98cf1ae847f2675087b14efa088 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Nov 05 10:06:32 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Nov 05 10:13:37 2017 +0100 |
tree | 7aa4981e1a34b8d0ab270aa8b6b99113080ec96a | |
parent | 1c8980f9b54ceb2a35b0ecb9be71df6795773542 [diff] |
BUG/MAJOR: threads/checks: wrong use of SPIN_LOCK instead of SPIN_UNLOCK Must unlock on exit, copy-paste error.
diff --git a/src/checks.c b/src/checks.c index 3c2eeb6..222704a 100644 --- a/src/checks.c +++ b/src/checks.c
@@ -2091,7 +2091,7 @@ 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; }