]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #894: continual "cache size changed" messages on -k logrotate
authorhno <>
Sun, 7 Nov 2004 04:51:57 +0000 (04:51 +0000)
committerhno <>
Sun, 7 Nov 2004 04:51:57 +0000 (04:51 +0000)
patch by Guido.

src/fs/ufs/store_dir_ufs.cc

index 326a281e981f4da8a3774f63b90c27deff538b7a..1b47a1ad8aca8c7edb3ac20cbda41d521897842e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.64 2003/09/07 07:35:50 adrian Exp $
+ * $Id: store_dir_ufs.cc,v 1.65 2004/11/06 21:51:57 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -76,12 +76,14 @@ UFSSwapDir::parseSizeL1L2()
         fatal("UFSSwapDir::parseSizeL1L2: invalid size value");
 
     /* just reconfigure it */
-    if (size == max_size)
-        debug(3, 1) ("Cache dir '%s' size remains unchanged at %d KB\n",
-                     path, size);
-    else
-        debug(3, 1) ("Cache dir '%s' size changed to %d KB\n",
-                     path, size);
+    if (reconfiguring) {
+        if (size == max_size)
+            debug(3, 2) ("Cache dir '%s' size remains unchanged at %d KB\n",
+                         path, size);
+        else
+            debug(3, 1) ("Cache dir '%s' size changed to %d KB\n",
+                         path, size);
+    }
 
     max_size = size;