]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5022: Reconfigure kills Coordinator in SMP+ufs configurations (#556)
authorDrDaveD <2129743+DrDaveD@users.noreply.github.com>
Fri, 21 Feb 2020 05:12:04 +0000 (05:12 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 29 Mar 2020 11:54:01 +0000 (00:54 +1300)
In these unsupported SMP+ufs configurations, depending on the deployment
specifics, the Coordinator process could exit due to swap state file
opening errors:

    kid11| FATAL: UFSSwapDir::openLog: Failed to open swap log.

src/fs/ufs/UFSSwapDir.cc

index 2570306045517d9110763249e4ceec902cb0be90..f3811bc9c1d0b45d610b5148e51c8401aacf2375 100644 (file)
@@ -724,6 +724,9 @@ Fs::Ufs::UFSSwapDir::logFile(char const *ext) const
 void
 Fs::Ufs::UFSSwapDir::openLog()
 {
+    if (!IamWorkerProcess())
+        return;
+
     assert(NumberOfUFSDirs || !UFSDirToGlobalDirMapping);
     ++NumberOfUFSDirs;
     assert(NumberOfUFSDirs <= Config.cacheSwap.n_configured);