From: wessels <> Date: Wed, 11 Apr 2007 01:24:38 +0000 (+0000) Subject: Since I changed the semantics of store_dirs_rebuilding yesterday (to match X-Git-Tag: SQUID_3_0_PRE6~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4b1808b86823bda50e7f17cac0b3cbabc6c91b8;p=thirdparty%2Fsquid.git Since I changed the semantics of store_dirs_rebuilding yesterday (to match 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. --- diff --git a/src/store_rebuild.cc b/src/store_rebuild.cc index d073c6fcf9..85df970935 100644 --- a/src/store_rebuild.cc +++ b/src/store_rebuild.cc @@ -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);