]> git.ipfire.org Git - thirdparty/squid.git/commit
Avoid "STORE_DISK_CLIENT == getType()" assertions for ENTRY_ABORTED clients
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 25 Jun 2013 17:51:30 +0000 (11:51 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 25 Jun 2013 17:51:30 +0000 (11:51 -0600)
commit212c0ba501e01439bf2141696f76d2616fa95dba
tree80e0a648f35e3f453c78ceac63764d6ba74f4ddc
parent99921d9d8301ad62d0a1075c556d2cb14d8147dd
Avoid "STORE_DISK_CLIENT == getType()" assertions for ENTRY_ABORTED clients
and no disk cache configured.

StoreEntry::abort() makes entry STORE_OK, which makes
storeClientNoMoreToSend() return false for entries with unknown objectLen(),
triggering a disk read for some of them (when store_client::doCopy() cannot
schedule a memory read). If the entry is not really on disk, we hit an
assertion in store_client::scheduleDiskRead().
src/store_client.cc