]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Shared Rock::DirMap version 11.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 1 Feb 2011 08:30:26 +0000 (11:30 +0300)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 1 Feb 2011 08:30:26 +0000 (11:30 +0300)
src/fs/rock/RockSwapDir.cc

index 0267721142d565d4b2c1ce27b4349e2363452daa..943cc02d2a50d8a0422e9cfa3e2f39ae963efb89 100644 (file)
@@ -305,11 +305,13 @@ Rock::SwapDir::addEntry(const int fileno, const StoreEntry &from)
         debugs(47, 5, HERE << "Rock::SwapDir::addEntry: the entry loaded from "
                "disk was hashed to a new slot");
         map->closeForWriting(idx);
+        map->closeForReading(idx);
         map->free(idx);
         return false;
     }
     basics->set(from);
     map->closeForWriting(fileno);
+    map->closeForReading(fileno);
     return true;
 }