From: wessels <> Date: Thu, 17 Jul 2003 21:40:27 +0000 (+0000) Subject: bugzilla #710: round-robin cache_dir selection incorrectly compares max-size X-Git-Tag: SQUID_3_0_PRE2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68defc4ef32bb7456087b7f4e73123c1737381aa;p=thirdparty%2Fsquid.git bugzilla #710: round-robin cache_dir selection incorrectly compares max-size --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 31c65031d7..0edb6d46f0 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1,6 +1,6 @@ /* - * $Id: store_dir.cc,v 1.146 2003/06/24 12:42:27 robertc Exp $ + * $Id: store_dir.cc,v 1.147 2003/07/17 15:40:27 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -187,7 +187,7 @@ storeDirSelectSwapDirRoundRobin(const StoreEntry * e) if (sd->cur_size > sd->max_size) continue; - if (!storeDirValidSwapDirSize(i, objsize)) + if (!storeDirValidSwapDirSize(dirn, objsize)) continue; /* check for error or overload condition */