]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed store.cc "!mem_obj" assertion via peerDigestRequest (#134)
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 23 Jan 2018 21:08:02 +0000 (14:08 -0700)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2018 21:08:02 +0000 (14:08 -0700)
Broken by commit 76d61119 which (correctly) made createMeObject() assert
but missed one case where the old code should have been converted to
call the new ensureMemObject() instead.

peerDigestRequest() is called every 5 minutes, triggered by the
peerDigestCheck event. Most calls find the old digest entry that has the
same method and URIs.

src/peer_digest.cc

index 296792e78bfa64e607116423f247f145217d1a7e..a8d9093f7ac2d9e1a070d2543ad57ced0d59cfe8 100644 (file)
@@ -360,7 +360,7 @@ peerDigestRequest(PeerDigest * pd)
         debugs(72, 5, "peerDigestRequest: found old entry");
 
         old_e->lock("peerDigestRequest");
-        old_e->createMemObject(url, url, req->method);
+        old_e->ensureMemObject(url, url, req->method);
 
         fetch->old_sc = storeClientListAdd(old_e, fetch);
     }