]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not become a store_client for entries that are not backed by Store.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 1 Jul 2013 19:59:32 +0000 (13:59 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 1 Jul 2013 19:59:32 +0000 (13:59 -0600)
commit22696a1676f7009ba44984129364c545e264702d
tree0b2d3f50148e003e9327828797356ab05feaa433
parent752fd8d290e36f1baed312b7ffcd49d9a0fc4925
Do not become a store_client for entries that are not backed by Store.

If we ignore cache backing when becoming a store client, then
StoreEntry::storeClientType() is going to make us a DISK_CLIENT by default.
If there is no disk cache or it cannot be used for our entry, we will assert
in store_client constructor. Prevent those assertions by checking earlier in
StoreEntry::validToSend().
src/store.cc