Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: net/disk_cache/eviction.cc

Issue 149218: Disk cache: Keep a map of all open entries.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/eviction.cc
===================================================================
--- net/disk_cache/eviction.cc (revision 19788)
+++ net/disk_cache/eviction.cc (working copy)
@@ -182,7 +182,8 @@
}
if (node->Data()->pointer) {
- entry = EntryImpl::Update(entry);
+ // We ignore the failure; we're removing the entry anyway.
+ entry->Update();
}
ReportTrimTimes(entry);
if (empty || !new_eviction_) {
@@ -400,7 +401,8 @@
}
if (node->Data()->pointer) {
- entry = EntryImpl::Update(entry);
+ // We ignore the failure; we're removing the entry anyway.
+ entry->Update();
}
entry->entry()->Data()->state = ENTRY_DOOMED;
entry->Doom();

Powered by Google App Engine
This is Rietveld 408576698