]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3762: remove bogus WARNING in cache.log
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Jun 2013 14:43:23 +0000 (08:43 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 29 Jun 2013 14:43:23 +0000 (08:43 -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 mentinoed legitimate configurations.

src/cache_cf.cc

index 0ca84867cb9d5ca50db47d2b09ebc4f01ef4289e..56e6c2fafac94849286b5503847bf19bf9f84367 100644 (file)
@@ -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;