]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Increment and decrement store_dirs_rebuilding counter so that
authorwessels <>
Wed, 17 Apr 2002 04:43:05 +0000 (04:43 +0000)
committerwessels <>
Wed, 17 Apr 2002 04:43:05 +0000 (04:43 +0000)
we dont get an assertion if, for some reason, the config file
has more than one 'null' cache_dir.

src/fs/null/store_null.cc

index 8e194e0d6af6c0a610fa9f39c37806197ce8a903..15e68a8ebefcf20478e1d7612379ab60fe31445b 100644 (file)
@@ -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);
 }