upas/fs: fix infinite loop in putcache
Force the cacheclear operation in the LRU cache trimming loop in order to guarantee that the cache becomes smaller with each iteration. Without the force flag cacheclear is a no-op for mailboxes that do not provide a fetch function, e.g. POP3.
This commit is contained in:
parent
ca851bbb5e
commit
b836802fe6
|
@ -100,7 +100,7 @@ putcache(Mailbox *mb, Message *m)
|
||||||
return;
|
return;
|
||||||
addlru(mb, mb->lru);
|
addlru(mb, mb->lru);
|
||||||
}
|
}
|
||||||
cachefree(mb, mb->lru, 0);
|
cachefree(mb, mb->lru, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue