commit | cafe15c743f6bc1a9e624939e1851f215645e4f2 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 19 17:42:49 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 19 19:25:13 2021 +0100 |
tree | ee19525d89e62f2b238ff0b8e957c24649ff6a21 | |
parent | b15e8a1c96dc370e9c5d47463106b662f123c29e [diff] |
BUG/MINOR: shctx: do not look for available blocks when the first one is enough In shctx_row_reserve_hot() we only leave if we've found the exact requested size instead of at least as large, as is documented. This results in extra lookups and free calls in the avail loop while it is not needed, and participates to seeing a negative data_len early as spotted in previous bugs. It doesn't seem to have any other impact however, but it's better to backport it to stable branches.