]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads: fix the no-thread case after the change to the sync point
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Aug 2018 08:07:15 +0000 (10:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Aug 2018 08:07:15 +0000 (10:07 +0200)
commitab657ce2511c4e19b0191fbe1c98cfd823a3c5d6
treebd31ed22d2d675d7a8340b952b50d3de8ed223a4
parentad4e1a4735a58878d0a50125b60eb801903f7be1
BUG/MEDIUM: threads: fix the no-thread case after the change to the sync point

In commit 0c026f4 ("MINOR: threads: add more consistency between certain
variables in no-thread case"), we ensured that we don't have all_threads_mask
zeroed anymore. But one test was missed for the write() to the sync pipe.
This results in a situation where when running single-threaded, once a
server status changes, a wake-up message is written to the pipe and never
consumed, showing a 100% CPU usage.

No backport is needed.
src/hathreads.c