Commit 29313f17 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Always close the VFP stack, also on BS_NONE.

Fixes:	#1860
parent be7d170d
......@@ -523,8 +523,6 @@ vbf_fetch_body_helper(struct busyobj *bo)
}
} while (vfps == VFP_OK);
VFP_Close(vfc);
if (vfps == VFP_ERROR) {
AN(vfc->failed);
(void)VFP_Error(vfc, "Fetch pipeline failed to process");
......@@ -686,6 +684,8 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
vbf_fetch_body_helper(bo);
}
VFP_Close(bo->vfc);
if (bo->vfc->failed) {
VDI_Finish(bo->wrk, bo);
if (!bo->do_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