]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Uppered the metadata swapin element length from 1<<10 to 1<<16 bytes. This
authorhno <>
Fri, 2 Feb 2001 02:48:25 +0000 (02:48 +0000)
committerhno <>
Fri, 2 Feb 2001 02:48:25 +0000 (02:48 +0000)
was causing bogous swapin warnings on long URL's (>1024 characters).

src/store_swapmeta.cc

index 0693a0cfceeaff9d3b0716913bdcec34c10f74a8..2ccbdd27056e458ffa9f9e771267671355081f59 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_swapmeta.cc,v 1.14 2001/01/12 00:37:22 wessels Exp $
+ * $Id: store_swapmeta.cc,v 1.15 2001/02/01 19:48:25 hno Exp $
  *
  * DEBUG: section 20    Storage Manager Swapfile Metadata
  * AUTHOR: Kostas Anagnostakis
@@ -135,7 +135,7 @@ storeSwapMetaUnpack(const char *buf, int *hdr_len)
            break;
        }
        xmemcpy(&length, &buf[j], sizeof(int));
-       if (length < 0 || length > (1 << 10)) {
+       if (length < 0 || length > (1 << 16)) {
            debug(20, 0) ("storeSwapMetaUnpack: insane length (%d)!\n", length);
            break;
        }