Commit 01ccb320 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate a couple of trivial uses of req->obj

parent 93d29280
......@@ -264,7 +264,7 @@ ESI_Deliver(struct req *req)
int i;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
p = ObjGetattr(req->obj->objcore, &req->wrk->stats, OA_ESIDATA, &l);
p = ObjGetattr(req->objcore, &req->wrk->stats, OA_ESIDATA, &l);
AN(p);
assert(l > 0);
e = p + l;
......
......@@ -235,12 +235,12 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
ssize_t l;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
CHECK_OBJ_NOTNULL(req->obj, OBJECT_MAGIC);
CHECK_OBJ_NOTNULL(req->obj->objcore, OBJCORE_MAGIC);
req->res_mode = 0;
if (!req->disable_esi && req->obj->esidata != NULL) {
if (!req->disable_esi && ObjGetattr(req->objcore, &req->wrk->stats,
OA_ESIDATA, NULL) != NULL) {
/* In ESI mode, we can't know the aggregate length */
req->res_mode &= ~RES_LEN;
req->res_mode |= RES_ESI;
......
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