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: M-staged-PR151~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=808012374d26d10703ce4c52548664ad8f06129d;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 e2d17dd3a8..0e5ebf9d9d 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())