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

Issue 14295013: Simple Cache: DoomEntriesBetween() (Closed)

Created:
7 years, 8 months ago by pasko-google - do not use
Modified:
7 years, 8 months ago
Reviewers:
felipeg, Philippe, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Simple Cache: DoomEntriesBetween() The steps are: * wait for the index to come up * pull the key hashes from the index according to the time range * go to the worker pool and delete all the corresponding entry files BUG=230306 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194941

Patch Set 1 #

Total comments: 49

Patch Set 2 : first round of comments #

Total comments: 8

Patch Set 3 : more comments addressed #

Patch Set 4 : vector #

Total comments: 2

Patch Set 5 : RemoveEntriesBetween() and rebase #

Patch Set 6 : more rebases #

Patch Set 7 : even more rebasing #

Patch Set 8 : fix an actual bug in DoomEntry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -41 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 4 5 4 chunks +28 lines, -9 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 6 1 chunk +16 lines, -16 lines 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 2 3 4 5 6 4 chunks +20 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 6 3 chunks +48 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 4 5 6 7 3 chunks +39 lines, -8 lines 0 comments Download
M net/disk_cache/simple/simple_util.h View 1 1 chunk +10 lines, -6 lines 0 comments Download
M net/disk_cache/simple/simple_util.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
pasko-google - do not use
7 years, 8 months ago (2013-04-16 17:23:03 UTC) #1
gavinp
I wrote all these nits before I decided to raise these architectural concerns; so please ...
7 years, 8 months ago (2013-04-17 07:41:18 UTC) #2
gavinp
I can't seem to use the UI to start try jobs. Can you please run ...
7 years, 8 months ago (2013-04-17 07:45:02 UTC) #3
felipeg
7 years, 8 months ago (2013-04-17 10:06:29 UTC) #4
felipeg
https://chromiumcodereview.appspot.com/14295013/diff/1/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://chromiumcodereview.appspot.com/14295013/diff/1/net/disk_cache/simple/simple_backend_impl.cc#newcode75 net/disk_cache/simple/simple_backend_impl.cc:75: return index_->GetEntryCount(); On 2013/04/17 07:41:18, gavinp wrote: > Nice. ...
7 years, 8 months ago (2013-04-17 16:35:04 UTC) #5
pasko-google - do not use
PTAL I think the new histogram and a test for stalled initialization should go in ...
7 years, 8 months ago (2013-04-17 19:47:51 UTC) #6
gavinp
Looking great; we're down to nits. https://codereview.chromium.org/14295013/diff/1/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): https://codereview.chromium.org/14295013/diff/1/net/disk_cache/simple/simple_index.cc#newcode120 net/disk_cache/simple/simple_index.cc:120: for (EntrySet::iterator it ...
7 years, 8 months ago (2013-04-18 06:11:35 UTC) #7
gavinp
https://codereview.chromium.org/14295013/diff/13001/net/disk_cache/simple/simple_backend_impl.h File net/disk_cache/simple/simple_backend_impl.h (right): https://codereview.chromium.org/14295013/diff/13001/net/disk_cache/simple/simple_backend_impl.h#newcode34 net/disk_cache/simple/simple_backend_impl.h:34: public base::SupportsWeakPtr<SimpleBackendImpl> { This requires some thought. The Index ...
7 years, 8 months ago (2013-04-18 08:16:06 UTC) #8
pasko-google - do not use
Addressed comments, will also replace set with vector as Phillippe suggested. https://codereview.chromium.org/14295013/diff/1/net/disk_cache/simple/simple_index.cc File net/disk_cache/simple/simple_index.cc (right): ...
7 years, 8 months ago (2013-04-18 09:29:54 UTC) #9
pasko-google - do not use
updated with vector, PTAL
7 years, 8 months ago (2013-04-18 09:42:08 UTC) #10
gavinp
LGTM.
7 years, 8 months ago (2013-04-18 09:52:23 UTC) #11
felipeg
https://codereview.chromium.org/14295013/diff/1/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://codereview.chromium.org/14295013/diff/1/net/disk_cache/simple/simple_entry_impl.cc#oldcode44 net/disk_cache/simple/simple_entry_impl.cc:44: if (!index || index->UseIfExists(key)) { On 2013/04/17 19:47:52, pasko ...
7 years, 8 months ago (2013-04-18 09:54:58 UTC) #12
felipeg
LGTM https://codereview.chromium.org/14295013/diff/32001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14295013/diff/32001/net/disk_cache/simple/simple_entry_impl.cc#newcode43 net/disk_cache/simple/simple_entry_impl.cc:43: if (index && !index->Has(key)) This change is not ...
7 years, 8 months ago (2013-04-18 10:05:05 UTC) #13
pasko-google - do not use
https://codereview.chromium.org/14295013/diff/32001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14295013/diff/32001/net/disk_cache/simple/simple_entry_impl.cc#newcode43 net/disk_cache/simple/simple_entry_impl.cc:43: if (index && !index->Has(key)) On 2013/04/18 10:05:05, felipeg1 wrote: ...
7 years, 8 months ago (2013-04-18 10:16:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14295013/40001
7 years, 8 months ago (2013-04-18 10:16:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14295013/54001
7 years, 8 months ago (2013-04-18 11:13:38 UTC) #16
commit-bot: I haz the power
Failed to apply patch for net/disk_cache/simple/simple_index.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-18 13:10:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14295013/54004
7 years, 8 months ago (2013-04-18 13:39:42 UTC) #18
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=43609
7 years, 8 months ago (2013-04-18 14:05:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/14295013/61013
7 years, 8 months ago (2013-04-18 14:07:21 UTC) #20
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 16:33:13 UTC) #21
Message was sent while issue was closed.
Change committed as 194941

Powered by Google App Engine
This is Rietveld 408576698