Commit d89bbe7f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix an assert to test that the object has "useful lifetime" which

is not the same as a positive TTL any more.
parent fc90bf08
......@@ -521,7 +521,7 @@ smp_allocobj(struct stevedore *stv, struct busyobj *bo,
if (bo->fetch_objcore == NULL)
return (NULL); /* from cnt_error */
CAST_OBJ_NOTNULL(sc, stv->priv, SMP_SC_MAGIC);
AN(bo->exp.ttl > 0.);
AN((bo->exp.ttl + bo->exp.grace + bo->exp.keep) > 0.);
ltot = IRNUP(sc, ltot);
......
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