mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
BUG/MEDIUM: threads: fix incorrect thread group being used on soft-stop
Commit 377e37a80 ("MINOR: tinfo: add the mask of enabled threads in each group") forgot -1 on the tgid, thus the groups was not always correctly tested, which is visible only when running with more than one group. No backport is needed.
This commit is contained in:
parent
89ed89e895
commit
291f6ff885
@ -2985,7 +2985,7 @@ static void *run_thread_poll_loop(void *data)
|
|||||||
ptff->fct();
|
ptff->fct();
|
||||||
|
|
||||||
#ifdef USE_THREAD
|
#ifdef USE_THREAD
|
||||||
if (!_HA_ATOMIC_AND_FETCH(&ha_tgroup_info[ti->tgid].threads_enabled, ~ti->ltid_bit))
|
if (!_HA_ATOMIC_AND_FETCH(&ha_tgroup_info[ti->tgid-1].threads_enabled, ~ti->ltid_bit))
|
||||||
_HA_ATOMIC_AND(&all_tgroups_mask, ~tg->tgid_bit);
|
_HA_ATOMIC_AND(&all_tgroups_mask, ~tg->tgid_bit);
|
||||||
_HA_ATOMIC_AND(&all_threads_mask, ~tid_bit);
|
_HA_ATOMIC_AND(&all_threads_mask, ~tid_bit);
|
||||||
if (tid > 0)
|
if (tid > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user