Commit 40d62bd8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Have FetchBody reset bo->vfp once it's done with it.

parent b78280f4
......@@ -916,7 +916,6 @@ cnt_fetchbody(struct sess *sp, struct worker *wrk, struct req *req)
(void)usleep(10000);
assert(bo->state >= BOS_FAILED);
bo->vfp = NULL;
assert(WRW_IsReleased(wrk));
AZ(bo->vbc);
AN(req->director);
......
......@@ -625,6 +625,8 @@ FetchBody(struct worker *wrk, void *priv)
*/
AZ(vfp_nop_end(bo));
bo->vfp = NULL;
VSLb(bo->vsl, SLT_Fetch_Body, "%u(%s) cls %d mklen %d",
bo->body_status, body_status(bo->body_status),
cls, mklen);
......@@ -674,7 +676,7 @@ FetchBody(struct worker *wrk, void *priv)
}
bo->stats = NULL;
VBO_DerefBusyObj(NULL, &bo);
VBO_DerefBusyObj(wrk, &bo);
}
/*--------------------------------------------------------------------
......
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