From: Tianyin Xu Date: Mon, 28 Jan 2013 04:33:00 +0000 (-0700) Subject: Bug 3728: Improve debug for cache_dir X-Git-Tag: SQUID_3_2_7~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91eb5a99829ca804efb522137494c5cbf8c7b093;p=thirdparty%2Fsquid.git Bug 3728: Improve debug for cache_dir --- diff --git a/src/store_dir.cc b/src/store_dir.cc index c8462e6d07..8ecd6865df 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -907,6 +907,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();