From: Dmitry Kurochkin Date: Wed, 27 Apr 2011 14:01:49 +0000 (+0400) Subject: Do not call updateSize() from Rock::SwapDir::addEntry(), it is NOP for Rock. X-Git-Tag: take07~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=538a810afddcb98358d982279d35fab8041b62f0;p=thirdparty%2Fsquid.git Do not call updateSize() from Rock::SwapDir::addEntry(), it is NOP for Rock. --- diff --git a/src/fs/rock/RockSwapDir.cc b/src/fs/rock/RockSwapDir.cc index 710c810f25..5e2abdfabc 100644 --- a/src/fs/rock/RockSwapDir.cc +++ b/src/fs/rock/RockSwapDir.cc @@ -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;