From: Alex Rousskov Date: Sun, 6 Feb 2011 01:35:23 +0000 (-0700) Subject: Disabled Rock::SwapDir::maintain() because it has no positive effects X-Git-Tag: take02~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fb3f93c781669e609f75b6a45800c77d36c87e8;p=thirdparty%2Fsquid.git Disabled Rock::SwapDir::maintain() because it has no positive effects with the current hashing scheme. --- diff --git a/src/fs/rock/RockSwapDir.cc b/src/fs/rock/RockSwapDir.cc index b11c9ba0ed..16ea34c474 100644 --- a/src/fs/rock/RockSwapDir.cc +++ b/src/fs/rock/RockSwapDir.cc @@ -531,6 +531,10 @@ Rock::SwapDir::diskFull() { void Rock::SwapDir::maintain() { + // Current openForWriting() code does not search for an empty + // slot so removing old slots will not make any difference. + return; + if (!map) return;