]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed typo breaking accounting of [forgotten] entries during index build.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 28 Apr 2014 15:58:39 +0000 (09:58 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 28 Apr 2014 15:58:39 +0000 (09:58 -0600)
Forgotten entries would still contribute to the total entry count and, hence,
result in some entries being evicted from cache prematurely.

Added in "Stop wasting 96 RAM bytes per slot" revision (branch r13321).

src/ipc/StoreMap.cc

index 86581fc099aceb733a0ca5b1cfe2a5fdce1e2661..f50d516f58c428f885fc398eb339641099122671 100644 (file)
@@ -74,7 +74,7 @@ Ipc::StoreMap::forgetWritingEntry(sfileno fileno)
     inode.rewind();
 
     inode.lock.unlockExclusive();
-    anchors->count;
+    --anchors->count;
 
     debugs(54, 8, "closed entry " << fileno << " for writing " << path);
 }