]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MAJOR: threads/checks: wrong use of SPIN_LOCK instead of SPIN_UNLOCK
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:06:32 +0000 (10:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 09:13:37 +0000 (10:13 +0100)
Must unlock on exit, copy-paste error.

src/checks.c

index 3c2eeb639719d1f1ccfd92aba5eeb2941a0b25af..222704a99d3eaf41ce0bd5417bd4e09dbcecfcd8 100644 (file)
@@ -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;
 }