From 252754c745a07f206dd5f23e4f13f2cace705cde Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 14 Jun 2022 10:43:01 +0200 Subject: [PATCH] MINOR: tinfo: make tid temporarily still reflect global ID For now we still set tid_bit to (1UL << tid) because FDs will not work with more than one group without this, but once FDs start to adopt local masks this must change to thr->ltid_bit. --- include/haproxy/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/thread.h b/include/haproxy/thread.h index a66180ee5..6ed080ecb 100644 --- a/include/haproxy/thread.h +++ b/include/haproxy/thread.h @@ -230,7 +230,7 @@ static inline void ha_set_thread(const struct thread_info *thr) ti = thr; tg = thr->tg; tid = thr->tid; - tid_bit = thr->ltid_bit; + tid_bit = 1UL << tid; /* FIXME: must become thr->ltid_bit */ th_ctx = &ha_thread_ctx[tid]; tgid = tg->tgid; } else {