]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3728: Improve debug for cache_dir
authorTianyin Xu <tixu@cs.ucsd.edu>
Wed, 2 Jan 2013 04:05:15 +0000 (21:05 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Jan 2013 04:05:15 +0000 (21:05 -0700)
src/store_dir.cc

index 2c39682ad9416d0089a00212f4b2a03bca026b2f..70196246fabbc1820d19828dd674b69ad524f6e1 100644 (file)
@@ -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();