From: Olivier Houchard Date: Mon, 12 Jan 2026 08:48:54 +0000 (+0100) Subject: BUG/MINOR: stats-file: Use a 16bits variable when loading tgid X-Git-Tag: v3.4-dev3~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1cfeeef218d8e65aa982485f54613bf3deb3fd5;p=thirdparty%2Fhaproxy.git BUG/MINOR: stats-file: Use a 16bits variable when loading tgid Now that the tgid stored in the stats file has been increased to 16bits by commit 022cb3ab7fdce74de2cf24bea865ecf7015e5754, don't forget to increase the variable size when reading it from the file, too. This should have no impact given the maximum thread group limit is still 32. --- diff --git a/src/stats-file.c b/src/stats-file.c index 295e05afc..117707e01 100644 --- a/src/stats-file.c +++ b/src/stats-file.c @@ -739,7 +739,7 @@ static void shm_stats_file_preload(void) while (it < objects) { struct guid_node *node; uint64_t users; - uint8_t obj_tgid; + uint16_t obj_tgid; curr_obj = SHM_STATS_FILE_OBJECT(shm_stats_file_hdr, it);