]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: threads: produce correct global mask for tgroup > 1
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:38:52 +0000 (19:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:41:26 +0000 (19:41 +0200)
commit9b0f0d146f406bffa611d60d3779eb9442c361d3
treeab0883dd1011056a3409ea9ab4e136a9ee6b8bd3
parent114c9c87ce8826cc920a27de6524d9cff07d837b
BUG/MINOR: threads: produce correct global mask for tgroup > 1

In thread_resolve_group_mask(), if a global thread number is passed
and it belongs to a group greater than 1, an incorrect shift resulted
in shifting that ID again which made it appear nowhere or in a wrong
group possibly. The bug was introduced in 2.5 with commit 627def9e5
("MINOR: threads: add a new function to resolve config groups and
masks") though the groups only starts to be usable in 2.7, so there
is no impact for this bug, hence no backport is needed.
src/thread.c