From: Tianyin Xu Date: Thu, 27 Dec 2012 02:26:28 +0000 (-0700) Subject: Bug 3728: Improve debug for cache_dir X-Git-Tag: SQUID_3_4_0_1~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81635392db683259dd891bd50e70aabd4a0cd00;p=thirdparty%2Fsquid.git Bug 3728: Improve debug for cache_dir --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 002da183f9..8175ff6aed 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -913,6 +913,10 @@ StoreHashIndex::callback() void StoreHashIndex::create() { + if(Config.cacheSwap.n_configured == 0) { + debugs(0, DBG_PARSE_NOTE(DBG_CRITICAL), "No cache_dir stores are configured."); + } + for (int i = 0; i < Config.cacheSwap.n_configured; ++i) { if (dir(i).active()) store(i)->create();