From: wessels <> Date: Wed, 17 Apr 2002 04:43:05 +0000 (+0000) Subject: Increment and decrement store_dirs_rebuilding counter so that X-Git-Tag: SQUID_3_0_PRE1~1064 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87f22b586ef727946f42390871267038d465d516;p=thirdparty%2Fsquid.git Increment and decrement store_dirs_rebuilding counter so that we dont get an assertion if, for some reason, the config file has more than one 'null' cache_dir. --- diff --git a/src/fs/null/store_null.cc b/src/fs/null/store_null.cc index 8e194e0d6a..15e68a8ebe 100644 --- a/src/fs/null/store_null.cc +++ b/src/fs/null/store_null.cc @@ -1,6 +1,6 @@ /* - * $Id: store_null.cc,v 1.2 2001/02/10 16:40:42 hno Exp $ + * $Id: store_null.cc,v 1.3 2002/04/16 22:43:05 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -73,6 +73,7 @@ storeNullDirStats(SwapDir * SD, StoreEntry * sentry) static void storeNullDirInit(SwapDir * sd) { + store_dirs_rebuilding++; eventAdd("storeNullDirRebuildComplete", storeNullDirRebuildComplete, NULL, 0.0, 1); } @@ -82,6 +83,7 @@ storeNullDirRebuildComplete(void *unused) { struct _store_rebuild_data counts; memset(&counts, '\0', sizeof(counts)); + store_dirs_rebuilding--; storeRebuildComplete(&counts); }