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

Issue 1398053002: Implement cache counting for the simple and memory backends. (Closed)

Created:
5 years, 2 months ago by msramek
Modified:
5 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement cache counting for the simple and memory backends. This is a followup to https://codereview.chromium.org/1304363013/, which implemented it for the blockfile backend. BUG=510028 Committed: https://crrev.com/a319545886d0e297b88301f01b804432bea602f7 Cr-Commit-Position: refs/heads/master@{#354037}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed comments. #

Total comments: 12

Patch Set 3 : small changes, cl format #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -54 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 6 chunks +31 lines, -37 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 chunks +23 lines, -15 lines 1 comment Download
M net/disk_cache/simple/simple_index.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
msramek
Hi Egor and Thomas, can you please have a look at this? Thanks! Martin https://codereview.chromium.org/1398053002/diff/1/net/disk_cache/simple/simple_backend_impl.cc ...
5 years, 2 months ago (2015-10-09 09:32:24 UTC) #2
pasko
Gavin is back, so adding him as the main reviewer. I would prefer to postpone ...
5 years, 2 months ago (2015-10-09 15:52:03 UTC) #4
msramek
Very well. Welcome back, Gavin, and please have a look :) https://codereview.chromium.org/1398053002/diff/1/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): ...
5 years, 2 months ago (2015-10-13 09:45:07 UTC) #5
gavinp
Looks mostly good. Sorry for the delay; it was a long weekend in North America ...
5 years, 2 months ago (2015-10-13 15:50:12 UTC) #6
msramek
https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/backend_unittest.cc#newcode295 net/disk_cache/backend_unittest.cc:295: // every stream. On 2015/10/13 15:50:12, gavinp wrote: > ...
5 years, 2 months ago (2015-10-13 17:25:50 UTC) #7
gavinp
lgtm. Thanks! https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc#newcode486 net/disk_cache/simple/simple_backend_impl.cc:486: callback)); On 2015/10/13 17:25:50, msramek wrote: > ...
5 years, 2 months ago (2015-10-14 15:08:06 UTC) #8
pasko
lgtm
5 years, 2 months ago (2015-10-14 15:47:23 UTC) #9
msramek
Thanks, guys! https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://codereview.chromium.org/1398053002/diff/20001/net/disk_cache/simple/simple_backend_impl.cc#newcode486 net/disk_cache/simple/simple_backend_impl.cc:486: callback)); On 2015/10/14 15:08:06, gavinp wrote: > ...
5 years, 2 months ago (2015-10-14 16:11:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398053002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398053002/40001
5 years, 2 months ago (2015-10-14 16:12:35 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-14 16:23:34 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a319545886d0e297b88301f01b804432bea602f7 Cr-Commit-Position: refs/heads/master@{#354037}
5 years, 2 months ago (2015-10-14 16:24:41 UTC) #14
Mark P
5 years, 2 months ago (2015-10-14 21:33:55 UTC) #15
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1401053004/ by mpearson@chromium.org.

The reason for reverting is: Causes test failures on XP bot:
https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/build...

DiskCacheBackendTest.SimpleCacheCalculateSizeOfAllEntries (run #1):
[ RUN      ] DiskCacheBackendTest.SimpleCacheCalculateSizeOfAllEntries
c:uild\slave\win_builderuild\src
et\disk_cacheackend_unittest.cc(1730): error: Value of: result
  Actual: 7447
Expected: (count - 1) * count / 2 + total_metadata_size
Which is: 7455
c:uild\slave\win_builderuild\src
et\disk_cacheackend_unittest.cc(1747): error: Value of: new_result
  Actual: 8243
Expected: result + last_entry_size + GetEntryMetadataSize(key)
Which is: 8235
c:uild\slave\win_builderuild\src
et\disk_cacheackend_unittest.cc(1751): error: Value of: new_result
  Actual: 7455
Expected: result
Which is: 7447
[  FAILED  ] DiskCacheBackendTest.SimpleCacheCalculateSizeOfAllEntries (171 ms)

.

Powered by Google App Engine
This is Rietveld 408576698