]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2570: wccp2 "Here I Am" announcements not sent
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 08:18:07 +0000 (20:18 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 08:18:07 +0000 (20:18 +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 15e9aee927a0ed044ecad081cfed03971d1f9ad4..2040b2872a8343636811d57eb81e1eb67a25855f 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;
     }