Fixing the store.log flooding during rebuild?

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 10 Aug 2001 11:41:33 +0800

Hi guys,

I'm now officially annoyed at the store.log filling up during a rebuild.
I have a nasty feeling I might have broken it last year.

In any case, here's an initial patch to fix the flooding.
Perhaps the logic should live in storeRelease()? I'm open
to suggestions.

Ta!

-- 
Adrian Chadd			Yeah, for me its (XML) like the movie Titanic.
<adrian@creative.net.au>	  Everybody loves it.
				    I want to be different, so I hate it.
					--Duane Wessels
Index: store_log.c
===================================================================
RCS file: /server/cvs-server/squid/squid/src/store_log.c,v
retrieving revision 1.22
diff -u -r1.22 store_log.c
--- store_log.c 2001/02/17 07:28:50     1.22
+++ store_log.c 2001/08/10 03:39:30
@@ -53,6 +53,8 @@
     HttpReply *reply;
     if (NULL == storelog)
        return;
+    if (e->swap_filen == -1 && e->swap_dirn == -1 && store_dirs_rebuilding)
+        return;                /* We're rebuilding! */
 #if UNUSED_CODE
     if (EBIT_TEST(e->flags, ENTRY_DONT_LOG))
        return;
Received on Thu Aug 09 2001 - 21:41:38 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:10 MST