From 32ffb4b93cda487f1fc118b41bc6c0ad3b1eb59d Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Fri, 5 Oct 2012 17:36:22 -0600 Subject: [PATCH] Do not check 'reply content_length is too big' condition twice. The check got duplicated was 4410 committer: hno branch nick: HEAD timestamp: Wed 2000-05-03 00:49:26 +0000 message: hno squid-2.2.STABLE2.to_large_objects-2.patch Squid-2.2.STABLE2: Don't swap out objects > maximum_object_size --- src/store.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/store.cc b/src/store.cc index cb415f1fc4..f61827151c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1003,9 +1003,6 @@ StoreEntry::checkCachable() mem_obj->endOffset() > Config.Store.maxObjectSize) { debugs(20, 2, "StoreEntry::checkCachable: NO: too big"); ++store_check_cachable_hist.no.too_big; - } else if (getReply()->content_length > Config.Store.maxObjectSize) { - debugs(20, 2, "StoreEntry::checkCachable: NO: too big"); - ++store_check_cachable_hist.no.too_big; } else if (checkTooSmall()) { debugs(20, 2, "StoreEntry::checkCachable: NO: too small"); ++store_check_cachable_hist.no.too_small; -- 2.47.3