]> git.ipfire.org Git - thirdparty/squid.git/commit
Ensure StoreEntry presence during store_client lifetime (#1281)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 19 Feb 2023 00:23:31 +0000 (00:23 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 19 Feb 2023 21:32:31 +0000 (21:32 +0000)
commit836d3c0b158f6e7bc795d1e6d881c873d98728e8
tree49fe19bab1b9a5ad1a5a60fde410a63da2e9b09d
parentf419f57e2d438c1fcb7f8a6aa08badc694fe7a7a
Ensure StoreEntry presence during store_client lifetime (#1281)

Most likely, all store_client users already lock their StoreEntry
objects, so this change is unlikely to affect any current use cases.
However, objects like store_client that store StoreEntry objects for
long-term/asynchronous reuse should lock their entries rather than rely
on others to do that for them. Being able to rely on StoreEntry locking
also clarifies existing logic in several store_client methods.
src/StoreClient.h
src/store_client.cc