Commit 5800cf91 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a band-aid for now, and pass the bo with the req where bereq/beresp

are available.
parent 71f81608
......@@ -380,11 +380,21 @@ vcl_call_method(struct worker *wrk, struct req *req, struct busyobj *bo,
CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
vsl = bo->vsl;
}
if (method == VCL_MET_BACKEND_FETCH ||
method == VCL_MET_PASS ||
method == VCL_MET_MISS ||
method == VCL_MET_PIPE ||
method == VCL_MET_BACKEND_RESPONSE) {
/* XXX: temporary workaround */
AN(req);
bo = req->busyobj;
CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC);
}
aws = WS_Snapshot(wrk->aws);
wrk->handling = 0;
wrk->cur_method = method;
VSLb(vsl, SLT_VCL_call, "%s", VCL_Method_Name(method));
(void)func(wrk, req, NULL, ws);
(void)func(wrk, req, bo, ws);
VSLb(vsl, SLT_VCL_return, "%s", VCL_Return_Name(wrk->handling));
wrk->cur_method = 0;
WS_Reset(wrk->aws, aws);
......
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