]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tinfo: make tid temporarily still reflect global ID
authorWilly Tarreau <w@1wt.eu>
Tue, 14 Jun 2022 08:43:01 +0000 (10:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:14:42 +0000 (19:14 +0200)
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

index a66180ee56747b339059a3d399cb9c19eb322cc2..6ed080ecbc01f9804491acf99559aa49a3601959 100644 (file)
@@ -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 {