]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix "mem_obj->inmem_lo == 0" assertion in StoreEntry::swapOut() (#896)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 12 Sep 2021 19:03:39 +0000 (19:03 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 19 Sep 2021 08:00:41 +0000 (08:00 +0000)
commitfa22b51202ba63dafbd31082cc049698fc9c8cae
tree558becba7a34cc57f7f4720e530f8aeee774d53f
parent2b9a2bba0f10e2aa9096883efc5b597a3a68bf5c
Fix "mem_obj->inmem_lo == 0" assertion in StoreEntry::swapOut() (#896)

Squid may stop writing to disk well before receiving the entire miss
response (e.g., because of swapout errors). When that happens, Squid
continues to call swapOut() to mem-cache the incoming response body.
Avoid the inapplicable disk-writing part of swapOut() in those cases.
src/store_swapout.cc