commit | 6eee85f887aaaae32f714db59b119aab903463be | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Sep 28 08:50:02 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 08 17:22:26 2021 +0200 |
tree | 5b153818b34b43cf1079b234336fc5b2622e3efc | |
parent | e6806ebeccc4844dcc95cbc04f40bc78f7b4c264 [diff] [blame] |
MINOR: threads: set the group ID and its bit in the thread group This will ease the reporting of the current thread group ID when coming from the thread itself, especially since it returns the visible ID, starting at 1.
diff --git a/src/thread.c b/src/thread.c index 2a7d3af..0b979f9 100644 --- a/src/thread.c +++ b/src/thread.c
@@ -1019,6 +1019,7 @@ for (g = 0; g < global.nbtgroups; g++) { if (!ha_tgroup_info[g].count) ug++; + ha_tgroup_info[g].tgid = g + 1; } if (ug > ut) {