From: Dmitry Kurochkin Date: Tue, 1 Feb 2011 10:48:22 +0000 (+0300) Subject: Skip initialization for all cache_dirs except for one managed by this disker. X-Git-Tag: take02~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00a690cb7145fa89a38832fbe94f822b0a8fef7d;p=thirdparty%2Fsquid.git Skip initialization for all cache_dirs except for one managed by this disker. --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 54f159df81..6737974fac 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -832,6 +832,12 @@ StoreHashIndex::init() * above * Step 3: have the hash index walk the searches itself. */ + if (IamDiskProcess() && + i != KidIdentifier % Config.cacheSwap.n_configured) { + debugs(20, 3, HERE << " skipping init for cache_dir " << + dynamic_cast(*store(i)).path); + continue; + } store(i)->init(); } }