]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Explain why we do not implement Icp::StoreMapCleaner API (yet).
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2011 17:02:23 +0000 (11:02 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 13 Apr 2011 17:02:23 +0000 (11:02 -0600)
src/fs/rock/RockDirMap.h

index cbba2f37738a8e813e30b32c59b19a045a046e05..0b642418bc9e4eac7dd797ea7254b89841c0cd70 100644 (file)
@@ -37,4 +37,13 @@ private:
 // We do not reuse struct _fileMap because we cannot control its size,
 // resulting in sfilenos that are pointing beyond the database.
 
+/* 
+ * Rock::DirMap does not implement Icp::StoreMapCleaner API because we want
+ * to avoid extra I/O necessary to mark the disk slot empty. We may create some
+ * stale responses if Squid quits, but should save a lot of I/O in the common
+ * cases. TODO: Consider cleaning on-disk slots on exit; always scheduling 
+ * but cancelling/merging cleanup I/O; scheduling cleanup I/O after a
+ * configurable delay; etc.
+ */
+
 #endif /* SQUID_FS_ROCK_DIR_MAP_H */