]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bugzilla #710: round-robin cache_dir selection incorrectly compares max-size
authorwessels <>
Thu, 17 Jul 2003 21:40:27 +0000 (21:40 +0000)
committerwessels <>
Thu, 17 Jul 2003 21:40:27 +0000 (21:40 +0000)
src/store_dir.cc

index 31c65031d7e14263a1f96b378d45bd7c3163192a..0edb6d46f05381961b50d5a2dd118eeab7e180e4 100644 (file)
@@ -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 */