]> 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)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 22 Feb 2018 15:37:18 +0000 (08:37 -0700)
src/store/Disk.cc

index e2d17dd3a8b74a1a94e57395094b62018558f21a..0e5ebf9d9d18e5c55a70c3ca9c601070c3d80e96 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())