| Index: net/disk_cache/sparse_control.cc
|
| ===================================================================
|
| --- net/disk_cache/sparse_control.cc (revision 50158)
|
| +++ net/disk_cache/sparse_control.cc (working copy)
|
| @@ -126,7 +126,7 @@
|
| return Release();
|
| }
|
| std::string child_name = GenerateChildName(name_, signature_, child_id);
|
| - backend_->DoomEntry(child_name);
|
| + backend_->SyncDoomEntry(child_name);
|
| children_map_.Set(child_id, false);
|
|
|
| // Post a task to delete the next child.
|
| @@ -373,7 +373,7 @@
|
| CloseChild();
|
| }
|
|
|
| - // Se if we are tracking this child.
|
| + // See if we are tracking this child.
|
| if (!ChildPresent())
|
| return ContinueWithoutChild(key);
|
|
|
| @@ -418,7 +418,7 @@
|
| NULL, false);
|
| if (rv != sizeof(child_data_))
|
| DLOG(ERROR) << "Failed to save child data";
|
| - child_->Close();
|
| + child_->Release();
|
| child_ = NULL;
|
| }
|
|
|
| @@ -430,8 +430,8 @@
|
| // We are deleting the child because something went wrong.
|
| bool SparseControl::KillChildAndContinue(const std::string& key, bool fatal) {
|
| SetChildBit(false);
|
| - child_->Doom();
|
| - child_->Close();
|
| + child_->DoomImpl();
|
| + child_->Release();
|
| child_ = NULL;
|
| if (fatal) {
|
| result_ = net::ERR_CACHE_READ_FAILURE;
|
|
|