Bug 1079789 - Don't doom expired entries in the HTTP cache intermediate memory pool. r=michal

CLOSED TREE
This commit is contained in:
Honza Bambas 2015-02-12 14:00:00 -05:00
parent 7de7456c72
commit 8ebce48c30

View File

@ -1261,11 +1261,10 @@ CacheStorageService::MemoryPool::PurgeExpired()
nsRefPtr<CacheEntry> entry = mExpirationArray[i];
uint32_t expirationTime = entry->GetExpirationTime();
if (expirationTime > 0 && expirationTime <= now) {
LOG((" dooming expired entry=%p, exptime=%u (now=%u)",
if (expirationTime > 0 && expirationTime <= now &&
entry->Purge(CacheEntry::PURGE_WHOLE)) {
LOG((" purged expired, entry=%p, exptime=%u (now=%u)",
entry.get(), entry->GetExpirationTime(), now));
entry->PurgeAndDoom();
continue;
}