]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed writing clean swap file broken by 4310f8b (#155)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 22 Feb 2018 15:37:18 +0000 (18:37 +0300)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 26 Feb 2018 12:50:51 +0000 (01:50 +1300)
src/store/Disk.cc

index 868349bd9a5f3e826feb8abaf74762c1ab495975..fe2fa43e7b87038342d273f37f161dfe1d41a9ee 100644 (file)
@@ -187,7 +187,7 @@ Store::Disk::canStore(const StoreEntry &e, int64_t diskSpaceNeeded, int &load) c
 bool
 Store::Disk::canLog(StoreEntry const &e)const
 {
-    if (e.hasDisk())
+    if (!e.hasDisk())
         return false;
 
     if (!e.swappedOut())