// expire -- expire a single item
LRUObject *lru_get_next_expire() {
+ adjust();
// look through tail of bot
while (bottom.size()) {
LRUObject *p = bottom.back();
// move to pintail
pintail.push_front(&p->lru_link);
- adjust();
}
// ok, try head then
// move to pintail
pintail.push_front(&p->lru_link);
- adjust();
}
// no luck!