]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: return inserted entry in __stktable_store()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Oct 2022 13:09:46 +0000 (15:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commitd2d3fd9b5e7cce174dbb225819855174e2e03c76
treebec7a93678837d1aaf2d102cf1d33827cdd013c5
parent8d3c3336f924c1862024bef54c90770c5282f5cb
MEDIUM: stick-table: return inserted entry in __stktable_store()

This function is used to create an entry in the table. But it doesn't
consider the possibility that the entry already exists, because right
now it's only called in situations where it was verified under a lock
that it doesn't exist. Since we'll soon need to break that assumption
we need it to verify that the requested entry was added and to return
a pointer to the one in the tree so that the caller can detect any
possible conflict. At the moment this is not used.
src/stick_table.c