*/
STORE_META_STD_LFS,
- /**
- \deprecated
- * Object size, not implemented, squid26 compatibility
- */
STORE_META_OBJSIZE,
STORE_META_STOREURL, /* the store url, if different to the normal URL */
tlv **T = &TLV;
const char *url;
const char *vary;
+ const int64_t objsize = e->objectLen();
assert(e->mem_obj != NULL);
assert(e->swap_status == SWAPOUT_WRITING);
url = e->url();
return NULL;
}
+
+ if (objsize >= 0) {
+ T = StoreMeta::Add(T, t);
+ t = StoreMeta::Factory(STORE_META_OBJSIZE, sizeof(objsize), &objsize);
+
+ if (!t) {
+ storeSwapTLVFree(TLV);
+ return NULL;
+ }
+ }
+
T = StoreMeta::Add(T, t);
vary = e->mem_obj->vary_headers;