]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Improved STORE_MEM_CLIENT detection.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Jul 2013 00:27:23 +0000 (18:27 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 29 Jul 2013 00:27:23 +0000 (18:27 -0600)
IN_MEMORY mem_status does not guarantee that the entore object is in the
memory cache. We may be just loading it from a shared memrory cache, and
loading may fail. We may have nibbled at the entry already (although that may
not be possible, not sure). The whole memory/disk store_client designation
probably needs more work, but the now-removed condition was causing
store_client.cc:445: "STORE_DISK_CLIENT == getType()" assertions.

src/store.cc

index b1004cd4836f5950f914d55bc2d09a7ff03d836f..20d95824689ca023c34571ee56e7ff76afc6704b 100644 (file)
@@ -318,11 +318,6 @@ StoreEntry::storeClientType() const
      * offset 0 in the memory object is the HTTP headers.
      */
 
-    if (mem_status == IN_MEMORY && Config.memShared && IamWorkerProcess()) {
-        // clients of an object cached in shared memory are memory clients
-        return STORE_MEM_CLIENT;
-    }
-
     assert(mem_obj);
 
     if (mem_obj->inmem_lo)