Commit 3bb4686b authored by Nils Goroll's avatar Nils Goroll Committed by Dridi Boukelmoune

merge HSH_EXP and HSH_EXPBUSY into HSH_GRACE

they are the same case
parent 58d10b09
......@@ -496,7 +496,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
} else {
if (exp_oc->hits < LONG_MAX)
exp_oc->hits++;
retval = HSH_EXPBUSY;
retval = HSH_GRACE;
}
} else {
Lck_Unlock(&oh->mtx);
......@@ -518,7 +518,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
assert(HSH_DerefObjHead(wrk, &oh));
if (exp_oc->hits < LONG_MAX)
exp_oc->hits++;
return (HSH_EXP);
return (HSH_GRACE);
}
/* There are one or more busy objects, wait for them */
......
......@@ -556,7 +556,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
}
wrk->stats->cache_hit++;
req->is_hit = 1;
if (lr == HSH_EXP || lr == HSH_EXPBUSY)
if (lr == HSH_GRACE)
wrk->stats->cache_hit_grace++;
req->req_step = R_STP_DELIVER;
return (REQ_FSM_MORE);
......
......@@ -53,8 +53,7 @@ enum lookup_e {
HSH_MISS,
HSH_BUSY,
HSH_HIT,
HSH_EXP,
HSH_EXPBUSY
HSH_GRACE
};
/* mgt_hash.c */
......
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