]> git.kaiwu.me - haproxy.git/commit
CLEANUP: thread: indicate when max-threads-per-group is ignored
authorWilly Tarreau <w@1wt.eu>
Thu, 28 May 2026 15:19:44 +0000 (17:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2026 16:27:29 +0000 (18:27 +0200)
commit58ae25d024cb60d3de9b4eed3a3d61dbde16674d
tree0900b0669a9feae69e53540a12a706441833b08e
parentffdd8edb50b5b6c06e0ae7f39af7e8a7bd4900c5
CLEANUP: thread: indicate when max-threads-per-group is ignored

Since it's easy to get caught by some parameters being ignored, let's
detect when mtpg was explicitly set and report a notice if it is ignored
due to thread-groups being set. For this we need to avoid presetting
the value in the global section and only set it when entering function
thread_detect_count(), which is OK since the value cannot be used before.
src/haproxy.c
src/thread.c