]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3774: -k reconfigure drops rock
authorAlexandre Chappaz <alexandrechappaz@gmail.com>
Tue, 26 Mar 2013 22:08:43 +0000 (16:08 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 26 Mar 2013 22:08:43 +0000 (16:08 -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 da7e93d6b2a20a50d01c937bdbbb93b5367807f4..9485c8eca2500bfe3db8711b7560f807d19201ee 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... */