]> git.kaiwu.me - haproxy.git/commit
MINOR: task: do not try to redistribute the WQ when single-threaded
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jun 2026 08:51:42 +0000 (10:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jun 2026 08:54:07 +0000 (10:54 +0200)
commit78cc7dacbb3f32a1ebdd46e1339d1c2317fdd851
tree269ae9cb5583241dded4263dde360153c89689b9
parent5a00b1129694191e2665eecb6ec1d1fb9e6b3e4d
MINOR: task: do not try to redistribute the WQ when single-threaded

When running with nbthread=1, we still try to redistribute once, it
fails (new_tid=tid) and leaves the loop. That's just a waste for no
reason. Let's condition the redispatch to the presence of at least
another thread.
src/task.c