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

Unified Diff: net/disk_cache/sparse_control.cc

Issue 11649028: Add an IO thread index bitmap to disk cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remediate Created 7 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
« net/disk_cache/entry_unittest.cc ('K') | « net/disk_cache/entry_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/sparse_control.cc
diff --git a/net/disk_cache/sparse_control.cc b/net/disk_cache/sparse_control.cc
index 52fd328f31467d3f9ae6e61a2d6cbd6787175827..28a1067567d07a536f3d59b53a343f92069c7ba5 100644
--- a/net/disk_cache/sparse_control.cc
+++ b/net/disk_cache/sparse_control.cc
@@ -531,6 +531,9 @@ bool SparseControl::ContinueWithoutChild(const std::string& key) {
if (!entry_->backend_)
return false;
+ // This CreateEntry doesn't need to modify the index bitmap, because child
+ // entries are only ever created from the cache thread for use on the cache
+ // thread.
child_ = entry_->backend_->CreateEntryImpl(key);
if (!child_) {
child_ = NULL;
« net/disk_cache/entry_unittest.cc ('K') | « net/disk_cache/entry_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698