]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3383: unhandled exception: theGroupBSize > 0
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 27 Oct 2011 01:00:39 +0000 (19:00 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 27 Oct 2011 01:00:39 +0000 (19:00 -0600)
Do not create shared queue for IpcIoFile if there are no diskers. The queue
code requires at least one queue reader and writer, and SMP does not imply the
existence of diskers.

src/DiskIO/IpcIo/IpcIoFile.cc

index cb8869d13812f72c11a75eda9b448b8c07947e0f..94271e59865d32cbcb157122c82b84d955d99c72 100644 (file)
@@ -863,7 +863,7 @@ RunnerRegistrationEntry(rrAfterConfig, IpcIoRr);
 
 void IpcIoRr::create(const RunnerRegistry &)
 {
-    if (!UsingSmp())
+    if (Config.cacheSwap.n_strands <= 0)
         return;
 
     Must(!owner);