]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not call updateSize() from Rock::SwapDir::addEntry(), it is NOP for Rock.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Wed, 27 Apr 2011 14:01:49 +0000 (18:01 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Wed, 27 Apr 2011 14:01:49 +0000 (18:01 +0400)
src/fs/rock/RockSwapDir.cc

index 710c810f258c4541bbbf54258b9b18e67a693e19..5e2abdfabcebc1161d0cfbe361ffc0801801ad31 100644 (file)
@@ -324,8 +324,6 @@ Rock::SwapDir::addEntry(const int fileno, const DbCellHeader &header, const Stor
         if (fileno == newLocation) {
             slot->set(from);
             map->extras(fileno) = header;
-            // core will not updateSize: we do not add the entry to store_table
-            updateSize(from.swap_file_sz, +1);
         } // else some other, newer entry got into our cell
         map->closeForWriting(newLocation, false);
         return fileno == newLocation;