]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3774: -k reconfigure drops rock
authorAlexandre Chappaz <alexandrechappaz@gmail.com>
Fri, 29 Mar 2013 06:54:15 +0000 (00:54 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 29 Mar 2013 06:54:15 +0000 (00:54 -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 bf2bd20db8675f1b305d508e9792903c91cd0610..da1d0bed56a7fcd8f9697df239286a36dd3d14b8 100644 (file)
@@ -600,6 +600,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... */