]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Mon, 29 May 2000 06:24:59 +0000 (06:24 +0000)
committerwessels <>
Mon, 29 May 2000 06:24:59 +0000 (06:24 +0000)
 - Wrote storeDiskdSync.  Debug level will need to be changed later,
   but for now it will tell us if its working correctly.

src/fs/diskd/store_dir_diskd.cc

index a38c3e10c1b91ce306051f030618943236d29ad7..90ec25183d58790169aaf7e537189991844374d9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_diskd.cc,v 1.6 2000/05/29 00:19:45 wessels Exp $
+ * $Id: store_dir_diskd.cc,v 1.7 2000/05/29 00:24:59 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -460,8 +460,11 @@ storeDiskdStats(StoreEntry * sentry)
 static void
 storeDiskdDirSync(SwapDir * SD)
 {
-    /* XXX NOT DONE YET! */
-#warning "storeDiskdSync() needs to be written"
+    diskdinfo_t *diskdinfo = SD->fsdata;
+    while (diskdinfo->away > 0) {
+       debug(47, 1) ("storeDiskdDirSync: %d messages away\n", diskdinfo->away);
+       storeDiskdDirCallback(SD);
+    }
 }