Commit 44bf9f3c authored by Nils Goroll's avatar Nils Goroll

clarify that we handle references correctly

This is no semantic change, but rather than indirectly checking
via the retval, we might also check the reason for keeping a
reference (or rather, not).
parent 00ad6d20
......@@ -495,7 +495,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
if (exp_oc->hits < LONG_MAX)
exp_oc->hits++;
Lck_Unlock(&oh->mtx);
if (retval == HSH_EXP)
if (*bocp == NULL)
assert(HSH_DerefObjHead(wrk, &oh));
*ocp = exp_oc;
return (retval);
......
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