]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Since I changed the semantics of store_dirs_rebuilding yesterday (to match
authorwessels <>
Wed, 11 Apr 2007 01:24:38 +0000 (01:24 +0000)
committerwessels <>
Wed, 11 Apr 2007 01:24:38 +0000 (01:24 +0000)
how it works in Squid-2 again), I forgot that storeRebuildComplete()
probably wouldn't do any work as long as store_dirs_rebuilding was greater
than zero.  Now it needs to do its work when store_dirs_rebuilding == 1.

src/store_rebuild.cc

index d073c6fcf9e5cd8fd1419ec390074abfbd7163a8..85df970935e217f21ceb019a2bc1a3ffb7925348 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_rebuild.cc,v 1.87 2007/04/10 00:45:10 wessels Exp $
+ * $Id: store_rebuild.cc,v 1.88 2007/04/10 19:24:38 wessels Exp $
  *
  * DEBUG: section 20    Store Rebuild Routines
  * AUTHOR: Duane Wessels
@@ -149,7 +149,7 @@ storeRebuildComplete(struct _store_rebuild_data *dc)
      * the validation (storeCleanup()) thread.
      */
 
-    if (StoreController::store_dirs_rebuilding)
+    if (StoreController::store_dirs_rebuilding > 1)
         return;
 
     dt = tvSubDsec(rebuild_start, current_time);