From: Alex Rousskov Date: Fri, 28 Jan 2011 01:25:12 +0000 (-0700) Subject: Added STORE_META_OBJSIZE size to keep storeSwapMetaSize in sync with X-Git-Tag: take01~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3928c2a8bf7de26384d77b86568e064bc4729734;p=thirdparty%2Fsquid.git Added STORE_META_OBJSIZE size to keep storeSwapMetaSize in sync with storeSwapMetaBuild. --- diff --git a/src/store.cc b/src/store.cc index f9b692402f..332e2d0783 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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;