]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: stick-tables: remove a few unneeded tests for use_wrlock
authorWilly Tarreau <w@1wt.eu>
Thu, 23 May 2024 18:24:35 +0000 (20:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 May 2024 09:52:19 +0000 (11:52 +0200)
commit8580f9db20ffe070c577eec32d3316dd2f5027ab
treed986e74df29f20532da84c02f62b9f4243b46855
parent77f286e8bcd345abbae252c2af2cee808cb91c32
CLEANUP: stick-tables: remove a few unneeded tests for use_wrlock

Due to the code in stktable_touch_with_exp() being the same as in other
functions previously made around a loop trying first to upgrade a read
lock then to fall back to a direct write lock, there remains a confusing
construct with multiple tests on use_wrlock that is obviously zero when
tested. Let's remove them since the value is known and the loop does not
exist anymore.
src/stick_table.c