summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-26 06:02:34 +0000
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-26 06:02:34 +0000
commitb09106fc163bf0933f072b543ab6f2e2f52e988a (patch)
tree34f714552a5ab9f7fa1cd509c3ace2b7dd78b1d3 /net
parent302c9c1db615e051c32b59a1248fe6c6c4623d83 (diff)
downloadchromium_src-b09106fc163bf0933f072b543ab6f2e2f52e988a.zip
chromium_src-b09106fc163bf0933f072b543ab6f2e2f52e988a.tar.gz
chromium_src-b09106fc163bf0933f072b543ab6f2e2f52e988a.tar.bz2
Disk cache: Downgrade a DCHECK to a DLOG.
Once in a while this hits a developer after going through a system crash (or forced restart), as expected, but the rest of the code solves the issue without user intervention. BUG=none TEST=none R=jar@chromium.org Review URL: https://codereview.chromium.org/85643005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/disk_cache/block_files.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/block_files.cc b/net/disk_cache/block_files.cc
index 896cdb1..1b15d376 100644
--- a/net/disk_cache/block_files.cc
+++ b/net/disk_cache/block_files.cc
@@ -83,7 +83,7 @@ bool BlockHeader::CreateMapBlock(int size, int* index) {
disk_cache::FileLock lock(header_);
int index_offset = j * 4 + 4 - target;
*index = current * 32 + index_offset;
- DCHECK_EQ(*index / 4, (*index + size - 1) / 4);
+ DLOG_IF(ERROR, *index / 4 == (*index + size - 1) / 4) << "Bit mismatch";
uint32 to_add = ((1 << size) - 1) << index_offset;
header_->num_entries++;