]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3774: -k reconfigure drops rock
authorAlexandre Chappaz <alexandrechappaz@gmail.com>
Fri, 29 Mar 2013 05:57:55 +0000 (23:57 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 Mar 2013 05:57:55 +0000 (23:57 -0600)
This fix keeps Rock cache_dirs visible to Cache Manager after reconfigure.
We still lack proper support for complex reconfiguration changes involving
cache_dirs.

src/cache_cf.cc

index d480969a32241333e9bdd503af1c34b2c9743ec7..35cac6efdfab25d0748875ef7e1b834eb7260c22 100644 (file)
@@ -655,6 +655,7 @@ configDoConfigure(void)
     memConfigure();
     /* Sanity checks */
 
+    Config.cacheSwap.n_strands = 0; // no diskers by default
     if (Config.cacheSwap.swapDirs == NULL) {
         /* Memory-only cache probably in effect. */
         /* turn off the cache rebuild delays... */