]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Allow HITs on entries backed by a shared memory cache only.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 19 Apr 2014 23:05:51 +0000 (17:05 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 19 Apr 2014 23:05:51 +0000 (17:05 -0600)
A typo in r12501.1.59 "Do not become a store_client for entries that are not
backed by Store" prevented such entries from being used for HITs and possibly
even purged them from the memory cache.

src/store.cc

index e4ecf40557fa0b640640c89b8b5d17b464cea8df..206e28d86ffeb1ca20b07a917d113ba67e01cbd3 100644 (file)
@@ -1537,7 +1537,7 @@ StoreEntry::validToSend() const
         return 0;
 
     if (mem_obj->memCache.index >= 0) // backed by a shared memory cache
-        return 0;
+        return 1;
 
     // StoreEntry::storeClientType() assumes DISK_CLIENT here, but there is no
     // disk cache backing so we should not rely on the store cache at all. This