]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
hno squid-2.3.DEVEL2.cache_swap_log_name-2.patch
authorhno <>
Wed, 3 May 2000 01:43:30 +0000 (01:43 +0000)
committerhno <>
Wed, 3 May 2000 01:43:30 +0000 (01:43 +0000)
Squid-2.3.DEVEL2: cache_swap_log name based on cache_dir name

%s can now be used in cache_swap_log to build a log file name based on
the cache_dir name instead of numbering the files according to their
corresponding cache_dir location in squid.conf. This is very useful if
you'd like to be able to add or remove cache directories while using
cache_swap_log to have the index files stored outside the cache
directories.

ChangeLog
src/cf.data.pre

index 140bc0eca13f6fc0afaf0bd7c86615f8b87caaa8..6a6c566634a3bfdd977e3cb1197e2b7206cca636 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,8 @@ Changes to Squid-2.4.DEVEL3 ():
        - Async-IO on linux now makes proper use of mutexes. This fixes some
          odd pthread segfaults on SMP Linux machines, at a slight performance
          penalty.
+       - %s can now be used in cache_swap_log and will be substituded with
+         the last path component of cache_dir.
 
 Changes to Squid-2.4.DEVEL2 ():
 
index b79cf6ce866312d1890102ef4601ffeb0af167fb..3b83ab07e5dcbd7a03acd98c8ed88048446a09a2 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.171 2000/05/02 19:35:23 hno Exp $
+# $Id: cf.data.pre,v 1.172 2000/05/02 19:43:30 hno Exp $
 #
 #
 # SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -701,14 +701,19 @@ DEFAULT: none
 DOC_START
        Location for the cache "swap.log."  This log file holds the
        metadata of objects saved on disk.  It is used to rebuild the
-       cache during startup.  Normally this file resides in the first
+       cache during startup.  Normally this file resides in each
        'cache_dir' directory, but you may specify an alternate
        pathname here.  Note you must give a full filename, not just
        a directory. Since this is the index for the whole object
        list you CANNOT periodically rotate it!
 
-       If you have more than one 'cache_dir', these swap logs will
-       have names such as:
+       If %s can be used in the file name then it will be replaced with a
+       a representation of the cache_dir name where each / is replaced
+       with '.'. This is needed to allow adding/removing cache_dir
+       lines when cache_swap_log is being used.
+           
+       If have more than one 'cache_dir', and %s is not used in the name
+       then these swap logs will have names such as:
 
                cache_swap_log.00
                cache_swap_log.01