MINOR: checks: pin the check to its thread upon wakeup
authorWilly Tarreau <w@1wt.eu>
Fri, 1 Sep 2023 05:27:56 +0000 (07:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Sep 2023 06:26:06 +0000 (08:26 +0200)
commit3544c9f8a0a4121ce6d6ded1d6a8fbf880f7eb60
treef6b19bc6468f8830e574f853cdaab604c73f23a0
parent7163f95b43476ccddbd07d37148e0d040e353dcf
MINOR: checks: pin the check to its thread upon wakeup

When a check leaves the sleeping state, we must pin it to the thread that
is processing it. It's normally always the case after the first execution,
but initial checks that start assigned to any thread (-1) could be assigned
much later, causing problems with planned changes involving queuing. Thus
better do it early, so that all threads start properly pinned.
src/check.c