]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Followup for the StoreEntry::mayStartSwapOut() fix (branch r12569).
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Jul 2013 22:34:46 +0000 (16:34 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 28 Jul 2013 22:34:46 +0000 (16:34 -0600)
Fixed swapout condition after adding swStarted to allow an already started
swapout to continue.

src/store_swapout.cc

index f77fab1aaa8816001ae6835bef83cf7a372198b8..3223ffbe8fad6255dd8761d354bfb1314e218aa9 100644 (file)
@@ -205,7 +205,7 @@ StoreEntry::swapOut()
 
     Store::Root().memoryOut(*this, weAreOrMayBeSwappingOut);
 
-    if (mem_obj->swapout.decision != MemObject::SwapOut::swPossible)
+    if (mem_obj->swapout.decision < MemObject::SwapOut::swPossible)
         return; // nothing else to do
 
     // Aborted entries have STORE_OK, but swapoutPossible rejects them. Thus,