Commit 4fc2d87f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make vdir->getbody() optional.

parent 503a6430
......@@ -99,10 +99,11 @@ VDI_GetBody(struct worker *wrk, struct busyobj *bo)
d = bo->director_resp;
CHECK_OBJ_NOTNULL(d, DIRECTOR_MAGIC);
AZ(d->resolve);
AN(d->getbody);
assert(bo->director_state == DIR_S_HDRS);
bo->director_state = DIR_S_BODY;
if (d->getbody == NULL)
return (0);
return (d->getbody(d, 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