static struct lock exp_mtx;
static VTAILQ_HEAD(,objcore) lru = VTAILQ_HEAD_INITIALIZER(lru);
-static const char *timer_what[] = {
- [OC_T_TTL] = "TTL",
-};
-
/*
* This is a magic marker for the objects currently on the SIOP [look it up]
* so that other users of the object will not stumble trying to change the
{
struct objcore *oc;
double when;
- unsigned char what;
CHECK_OBJ_NOTNULL(o, OBJECT_MAGIC);
oc = o->objcore;
Lck_AssertHeld(&exp_mtx);
when = oc->ttl + HSH_Grace(o->grace);
- what = OC_T_TTL;
assert(!isnan(when));
- oc->timer_what = what;
if (when == oc->timer_when)
return (0);
oc->timer_when = when;
assert(oc->flags & OC_F_ONLRU);
Lck_Unlock(&exp_mtx);
- WSL(&ww, SLT_ExpPick, 0, "%u %s", o->xid,
- timer_what[oc->timer_what]);
+ WSL(&ww, SLT_ExpPick, 0, "%u TTL", o->xid);
- assert(oc->timer_what == OC_T_TTL);
sp->obj = o;
VCL_timeout_method(sp);
sp->obj = NULL;