Commit e9af8be8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add documenting asserts

parent 8c5d1e72
......@@ -250,6 +250,9 @@ vbf_stp_mkbereq(struct worker *wrk, struct busyobj *bo)
HSH_Ref(bo->bereq_body);
bo->req = NULL;
ObjSetState(bo->wrk, bo->fetch_objcore, BOS_REQ_DONE);
} else if (bo->req->req_body_status != REQ_BODY_WITH_LEN &&
bo->req->req_body_status != REQ_BODY_WITHOUT_LEN) {
WRONG("Bad req_body_status");
}
return (F_STP_STARTFETCH);
}
......
......@@ -107,6 +107,7 @@ V1F_SendReq(struct worker *wrk, struct busyobj *bo, uint64_t *ctr_hdrbytes,
i = 0;
if (bo->bereq_body != NULL) {
AZ(bo->req);
if (do_chunked)
V1L_Chunked(wrk);
(void)ObjIterate(bo->wrk, bo->bereq_body,
......
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