]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Do not check 'reply content_length is too big' condition twice.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 5 Oct 2012 23:36:22 +0000 (17:36 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 5 Oct 2012 23:36:22 +0000 (17:36 -0600)
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

index cb415f1fc47998e05430e3f4a600ca48fc5525b0..f61827151c94334c3410db75edc28c8af17613ac 100644 (file)
@@ -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;