]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Oops, make sure we actually *set* the selected flag!
authoradrian <>
Sun, 12 Aug 2001 01:09:21 +0000 (01:09 +0000)
committeradrian <>
Sun, 12 Aug 2001 01:09:21 +0000 (01:09 +0000)
src/store_dir.cc

index 053016b93a3062bced0b89e6899b6a8bda5360a5..b37fd61cd762c351d0d6519bfa62d1c586396848 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.132 2001/08/11 16:34:37 adrian Exp $
+ * $Id: store_dir.cc,v 1.133 2001/08/11 19:09:21 adrian Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -224,6 +224,8 @@ storeDirSelectSwapDirLeastLoad(const StoreEntry * e)
        most_free = cur_free;
        dirn = i;
     }
+    if (dirn >= 0)
+        Config.cacheSwap.swapDirs[dirn].flags.selected = 1;
     return dirn;
 }