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

index c8462e6d07801221c7f0e25e1a05d137a0b97113..8ecd6865df0468c8299cc5a6f777f50cacc3ed55 100644 (file)
@@ -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();