Commit 1e639d1c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

If we are not going to stream, wait for BOS_FINISH.

parent f766f17f
......@@ -138,8 +138,14 @@ cnt_deliver(struct worker *wrk, struct req *req)
/* Grab a ref to the bo if there is one, and hand it down */
bo = HSH_RefBusy(req->objcore);
if (bo != NULL && req->esi_level == 0 && bo->state == BOS_FINISHED)
VBO_DerefBusyObj(wrk, &bo);
if (bo != NULL) {
if (req->esi_level == 0 && bo->state == BOS_FINISHED) {
VBO_DerefBusyObj(wrk, &bo);
} else if (!bo->do_stream) {
VBO_waitstate(bo, BOS_FINISHED);
VBO_DerefBusyObj(wrk, &bo);
}
}
V1D_Deliver(req, bo);
if (bo != NULL)
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