From 7698429c37f649dbbb3d7a913be4b00a1887b7c6 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 29 Jun 2013 08:43:23 -0600 Subject: [PATCH] Bug 3762: remove bogus WARNING in cache.log The warning is bogus for several reasons: * it appears with memory-only cache configurations * it only checks the size of first SwapDir (as seen in bug 3762) * very large memory spaces are now possible which may make disk appear small by comparison. Its usefulness in detecting memory and disk misconfigurations has long been almosy nil. Removing this entirey to resolve the bogus noise in the above mentinoed legitimate configurations. --- src/cache_cf.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 0ca84867cb..56e6c2fafa 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -676,12 +676,6 @@ configDoConfigure(void) Config.Store.maxObjectSize = 0x7FFF0000; } #endif - if (0 == Store::Root().maxSize()) - /* people might want a zero-sized cache on purpose */ - (void) 0; - else if (Store::Root().maxSize() < Config.memMaxSize) - /* This is bogus. folk with NULL caches will want this */ - debugs(3, DBG_CRITICAL, "WARNING cache_mem is larger than total disk cache space!"); if (Config.Announce.period > 0) { Config.onoff.announce = 1; -- 2.47.3