------------------------------------------------------------ revno: 11751 revision-id: squid3@treenet.co.nz-20130128043300-7i7zkfumhz6byyut parent: squid3@treenet.co.nz-20130128043026-koi25gdvjxkma9zp fixes bug(s): http://bugs.squid-cache.org/show_bug.cgi?id=3728 author: Tianyin Xu committer: Amos Jeffries branch nick: 3.2 timestamp: Sun 2013-01-27 21:33:00 -0700 message: Bug 3728: Improve debug for cache_dir ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130128043300-7i7zkfumhz6byyut # target_branch: http://bzr.squid-cache.org/bzr/squid3/branches\ # /SQUID_3_2 # testament_sha1: 2ad35c4cf49253edd83debdd00e549bdf51c792d # timestamp: 2013-01-28 04:35:51 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/branches\ # /SQUID_3_2 # base_revision_id: squid3@treenet.co.nz-20130128043026-\ # koi25gdvjxkma9zp # # Begin patch === modified file 'src/store_dir.cc' --- src/store_dir.cc 2012-10-17 01:02:52 +0000 +++ src/store_dir.cc 2013-01-28 04:33:00 +0000 @@ -907,6 +907,10 @@ 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();