commit | 4163036da039e6a76d65afc17af6758fd149d982 | [log] [tgz] |
---|---|---|
author | Aurelien DARRAGON <adarragon@haproxy.com> | Tue Jul 11 15:42:00 2023 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Fri Jul 21 15:20:34 2023 +0200 |
tree | 980c8dfb768c6284af0c9908da55ba26c7e01fe2 | |
parent | cb8c4c255010ec37cdc378d17f8fc39dcb5a5f4a [diff] |
BUG/MINOR: hlua_fcn/queue: use atomic load to fetch queue size In hlua_queue_size(), queue size is loaded as a regular int, but the queue might be shared by multiple threads that could perform some atomic pushing or popping attempts in parallel, so we better use an atomic load operation to guarantee consistent readings. This could be backported in 2.8. (cherry picked from commit 33a8c2842bcb11395a1e174f852f02e810c0ce67) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>