]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3762: remove bogus WARNING in cache.log
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 30 Jun 2013 08:45:09 +0000 (02:45 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 30 Jun 2013 08:45:09 +0000 (02:45 -0600)
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 mentioned legitimate configurations.

src/cache_cf.cc

index acbb49128928621e4ef733f03660e11d137a4f6a..e624b71b3bfcd4969ba92a0925290ab3692e2ee2 100644 (file)
@@ -674,12 +674,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;