]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3728: Improve debug for cache_dir
authorTianyin Xu <tixu@cs.ucsd.edu>
Thu, 27 Dec 2012 02:26:28 +0000 (19:26 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 27 Dec 2012 02:26:28 +0000 (19:26 -0700)
src/store_dir.cc

index 002da183f9447368f23bcf9f4eea8fccc1f897fc..8175ff6aed9ce037ade173dcfab0995432427739 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();