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

Unified Diff: net/disk_cache/blockfile/eviction.cc

Issue 2673863003: Fix loop early exit bug in blockfile cache Trim behavior. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/eviction.cc
diff --git a/net/disk_cache/blockfile/eviction.cc b/net/disk_cache/blockfile/eviction.cc
index 68f65b4bdcbe434b7fffeb13f0d3376727003225..97d8f703180939036d9d1c67b95c5bf3ba9a69e7 100644
--- a/net/disk_cache/blockfile/eviction.cc
+++ b/net/disk_cache/blockfile/eviction.cc
@@ -329,8 +329,8 @@ void Eviction::TrimCacheV2(bool empty) {
int list = Rankings::LAST_ELEMENT;
// Get a node from each list.
+ bool done = false;
for (int i = 0; i < kListsToSearch; i++) {
- bool done = false;
next[i].set_rankings(rankings_);
if (done)
continue;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698