From: Eduard Bagdasaryan Date: Thu, 22 Feb 2018 15:37:18 +0000 (+0300) Subject: Fixed writing clean swap file broken by 4310f8b (#155) X-Git-Tag: SQUID_4_0_24~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b8c59250af0c61486fa96051b0ed1d5df4da63e;p=thirdparty%2Fsquid.git Fixed writing clean swap file broken by 4310f8b (#155) --- diff --git a/src/store/Disk.cc b/src/store/Disk.cc index 868349bd9a..fe2fa43e7b 100644 --- a/src/store/Disk.cc +++ b/src/store/Disk.cc @@ -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())