]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added STORE_META_OBJSIZE size to keep storeSwapMetaSize in sync with
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 28 Jan 2011 01:25:12 +0000 (18:25 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 28 Jan 2011 01:25:12 +0000 (18:25 -0700)
storeSwapMetaBuild.

src/store.cc

index f9b692402ff6dc9ec4331ab5351a3e19acd0b925..332e2d07837a5eadb267530d90de572e445f50bf 100644 (file)
@@ -1847,6 +1847,10 @@ storeSwapMetaSize(const StoreEntry * e)
     size += pfx + STORE_HDR_METASIZE;
     size += pfx + strlen(e->url()) + 1;
 
+    // STORE_META_OBJSIZE
+    if (e->objectLen() >= 0)
+        size += pfx + sizeof(int64_t);
+
     if (const char *vary = e->mem_obj->vary_headers)
         size += pfx + strlen(vary) + 1;