]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2570: wccp2 "Here I Am" announcements not sent
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 4 Sep 2009 09:26:19 +0000 (21:26 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 4 Sep 2009 09:26:19 +0000 (21:26 +1200)
There is a bit of re-work in configuration needed before this can go into
the storage config scope where it belongs. Temporary fix for 3.1.
see bug report for details.

src/cache_cf.cc

index 22a8d9fe90d0cf0116f18aacac332aa84309d2a1..b6ba86a453c975fae1dd4aaca8c879cac468cc90 100644 (file)
@@ -430,6 +430,12 @@ configDoConfigure(void)
     memConfigure();
     /* Sanity checks */
 
+    if (Config.cacheSwap.swapDirs == NULL) {
+        /* Memory-only cache probably in effect. */
+        /* turn off the cache rebuild delays... */
+        StoreController::store_dirs_rebuilding = 0;
+    }
+
     if (Debug::rotateNumber < 0) {
         Debug::rotateNumber = Config.Log.rotateNumber;
     }