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

Various nitpicking

parent 0a18407e
......@@ -997,6 +997,7 @@ VBF_Fetch(struct worker *wrk, struct req *req, struct objcore *oc,
if (mode != VBF_BACKGROUND)
HSH_Ref(oc);
AZ(bo->fetch_objcore);
bo->fetch_objcore = oc;
AZ(bo->stale_oc);
......
......@@ -116,8 +116,7 @@ ObjIterBegin(struct worker *wrk, struct objcore *oc)
oi->oc = oc;
oi->obj = obj;
oi->wrk = wrk;
if (oc->objhead != NULL)
oi->bo = HSH_RefBusy(oc);
oi->bo = HSH_RefBusy(oc);
return (oi);
}
......
......@@ -268,6 +268,12 @@ VRB_Cache(struct req *req, ssize_t maxsize)
} while (vfps == VFP_OK);
VFP_Close(vfc);
ObjTrimStore(req->wrk, req->body_oc);
/* XXX: check missing:
if (req->htc->content_length >= 0)
MUSTBE (req->req_bodybytes == req->htc->content_length);
*/
if (vfps == VFP_END) {
assert(req->req_bodybytes >= 0);
......
......@@ -129,11 +129,9 @@ mac_callback(void *priv, const struct suckaddr *sa)
CAST_OBJ_NOTNULL(mh, priv, MAC_HELP_MAGIC);
VTAILQ_FOREACH(ls, &heritage.socks, list) {
if (!VSA_Compare(sa, ls->addr)) {
if (!VSA_Compare(sa, ls->addr))
ARGV_ERR("-a arguments %s and %s have same address\n",
ls->name, mh->name);
return (-1);
}
}
ALLOC_OBJ(ls, LISTEN_SOCK_MAGIC);
AN(ls);
......
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