From: Tianyin Xu Date: Wed, 2 Jan 2013 04:05:15 +0000 (-0700) Subject: Bug 3728: Improve debug for cache_dir X-Git-Tag: SQUID_3_3_0_3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=111f7d27bfd130803e89d4fc4c66b94a18a83d97;p=thirdparty%2Fsquid.git Bug 3728: Improve debug for cache_dir --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 2c39682ad9..70196246fa 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();