Commit 8fb7bf02 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Run VFP open before beresp->obj copy

parent 780e52f3
......@@ -479,6 +479,12 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
if (bo->htc.body_status == BS_NONE)
bo->do_stream = 0;
if (VFP_Open(bo)) {
(void)VFP_Error(bo, "Fetch Pipeline failed to open");
bo->should_close = 1;
return (F_STP_ERROR);
}
if (vbf_beresp2obj(bo)) {
(void)VFP_Error(bo, "Could not get storage");
bo->should_close = 1;
......@@ -508,12 +514,6 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
assert (bo->state == BOS_REQ_DONE);
if (VFP_Open(bo)) {
(void)VFP_Error(bo, "Fetch Pipeline failed to open");
bo->should_close = 1;
return (F_STP_ERROR);
}
if (bo->do_stream) {
HSH_Unbusy(&wrk->stats, obj->objcore);
VBO_setstate(bo, BOS_STREAM);
......
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