------------------------------------------------------------ revno: 12438 revision-id: squid3@treenet.co.nz-20130102040515-un4kc5pjeqark53i parent: squid3@treenet.co.nz-20130102040134-1xaa56m5g7sajw1x fixes bug(s): http://bugs.squid-cache.org/show_bug.cgi?id=3728 author: Tianyin Xu committer: Amos Jeffries branch nick: 3.3 timestamp: Tue 2013-01-01 21:05:15 -0700 message: Bug 3728: Improve debug for cache_dir ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130102040515-un4kc5pjeqark53i # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: 860d1e7e8ad6ca8c456d2a6fddb56b859037613e # timestamp: 2013-01-02 04:08:48 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130102040134-\ # 1xaa56m5g7sajw1x # # Begin patch === modified file 'src/store_dir.cc' --- src/store_dir.cc 2012-10-16 23:43:54 +0000 +++ src/store_dir.cc 2013-01-02 04:05:15 +0000 @@ -913,6 +913,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();