Commit aeebcb56 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only grab the extra reference if we have a request thread that wants it.

Zeroed in on by:	scoof
parent 760db1bd
......@@ -780,9 +780,11 @@ VBF_Fetch(struct worker *wrk, struct req *req, struct objcore *oc,
bo->vary = req->vary_b;
req->vary_b = NULL;
HSH_Ref(oc);
if (mode != VBF_BACKGROUND)
HSH_Ref(oc);
bo->fetch_objcore = oc;
AZ(bo->ims_obj);
if (oldobj != NULL) {
if (http_GetHdr(oldobj->http, H_Last_Modified, NULL) ||
http_GetHdr(oldobj->http, H_ETag, NULL)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment