From: hno <> Date: Sun, 7 Nov 2004 04:51:57 +0000 (+0000) Subject: Bug #894: continual "cache size changed" messages on -k logrotate X-Git-Tag: SQUID_3_0_PRE4~1005 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0931cb03a06adfb039383a6c4f82ddc02ba686ab;p=thirdparty%2Fsquid.git Bug #894: continual "cache size changed" messages on -k logrotate patch by Guido. --- diff --git a/src/fs/ufs/store_dir_ufs.cc b/src/fs/ufs/store_dir_ufs.cc index 326a281e98..1b47a1ad8a 100644 --- a/src/fs/ufs/store_dir_ufs.cc +++ b/src/fs/ufs/store_dir_ufs.cc @@ -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;