]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: switch the table lock to rwlock
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Oct 2022 10:02:50 +0000 (12:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commit76642223f014f89cd1f374291798499f4fba7dde
tree9b881aaf2813a99538e0151aa80074af8008433a
parentf6a42c3a371b764d7e841d07cb709a51b22beb84
MEDIUM: stick-table: switch the table lock to rwlock

Right now a spinlock is used, but most accesses are for reads, so let's
switch the lock to an rwlock and switch all accesses to exclusive locks
for now. There should be no visible difference at this point.
include/haproxy/stick_table-t.h
include/haproxy/stick_table.h
src/hlua_fcn.c
src/peers.c
src/stick_table.c