Commit f467442c authored by rvargas@google.com's avatar rvargas@google.com

Disk cache: Make sure that entry_ and node_ are not saved after doom.

BUG=231725
TEST=none

Review URL: https://codereview.chromium.org/14063011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194633 0039d316-1c4b-4281-b951-d872f2087c98
parent 151311e3
......@@ -502,9 +502,12 @@ void EntryImpl::DeleteEntryData(bool everything) {
backend_->ModifyStorageSize(entry_.Data()->key_len, 0);
backend_->DeleteBlock(entry_.address(), true);
entry_.Discard();
if (!LeaveRankingsBehind())
if (!LeaveRankingsBehind()) {
backend_->DeleteBlock(node_.address(), true);
node_.Discard();
}
}
CacheAddr EntryImpl::GetNextAddress() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment