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

Issue 14130015: Support overlapping operations on the SimpleEntryImpl. (Closed)

Created:
7 years, 8 months ago by felipeg
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Support overlapping operations on the SimpleEntryImpl. Using a std::queue<Closure>, it serializes the operations and runs each operation in the correct order. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194908

Patch Set 1 #

Patch Set 2 : fix a bug in GetDataSize() #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : add unittests #

Total comments: 5

Patch Set 7 : #

Total comments: 12

Patch Set 8 : #

Total comments: 4

Patch Set 9 : Merging with Gavin scoped_refptr CL #

Patch Set 10 : Egor comments #

Total comments: 12

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : rebase with gavin CL #

Patch Set 14 : rebase again #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -65 lines) Patch
M net/disk_cache/entry_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +94 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +24 lines, -6 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +117 lines, -59 lines 1 comment Download

Messages

Total messages: 22 (0 generated)
felipeg
Guys Check this out this crazy idea might work it works in fact, it worked ...
7 years, 8 months ago (2013-04-16 23:05:10 UTC) #1
gavinp
I like this approach, and I think it's more important to land this than to ...
7 years, 8 months ago (2013-04-17 08:12:35 UTC) #2
gavinp
This is great. Very simple. Polished up, I think this is a high priority to ...
7 years, 8 months ago (2013-04-17 08:17:14 UTC) #3
gavinp
https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc#newcode232 net/disk_cache/simple/simple_entry_impl.cc:232: int SimpleEntryImpl::WriteData(int index, I think ReadData / WriteData can ...
7 years, 8 months ago (2013-04-17 09:23:55 UTC) #4
gavinp
https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc#newcode222 net/disk_cache/simple/simple_entry_impl.cc:222: index, offset, buf, On 2013/04/17 08:17:14, gavinp wrote: > ...
7 years, 8 months ago (2013-04-17 09:40:16 UTC) #5
felipeg
https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14130015/diff/2001/net/disk_cache/simple/simple_entry_impl.cc#newcode89 net/disk_cache/simple/simple_entry_impl.cc:89: void SimpleEntryImpl::Doom() { On 2013/04/17 08:12:35, gavinp wrote: > ...
7 years, 8 months ago (2013-04-17 10:06:43 UTC) #6
gavinp
https://codereview.chromium.org/14130015/diff/15002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14130015/diff/15002/net/disk_cache/simple/simple_entry_impl.cc#newcode105 net/disk_cache/simple/simple_entry_impl.cc:105: if (operation_running_) { I think if you rebase on ...
7 years, 8 months ago (2013-04-17 11:04:36 UTC) #7
felipeg
https://codereview.chromium.org/14130015/diff/15002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/14130015/diff/15002/net/disk_cache/simple/simple_entry_impl.cc#newcode105 net/disk_cache/simple/simple_entry_impl.cc:105: if (operation_running_) { On 2013/04/17 11:04:36, gavinp wrote: > ...
7 years, 8 months ago (2013-04-17 11:51:22 UTC) #8
gavinp
LGTM. Make sure all try failures are flakes, and give consideration to rerunning them, before ...
7 years, 8 months ago (2013-04-17 13:13:44 UTC) #9
felipeg
https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h (right): https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/simple/simple_entry_impl.h#newcode89 net/disk_cache/simple/simple_entry_impl.h:89: // Runs next operation in the queue, if any ...
7 years, 8 months ago (2013-04-17 13:34:18 UTC) #10
felipeg
FYI, windows bot fails because: No space left on device and mac is a timeout ...
7 years, 8 months ago (2013-04-17 13:36:26 UTC) #11
pasko-google - do not use
LGTM, nice stuff https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/entry_unittest.cc File net/disk_cache/entry_unittest.cc (right): https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/entry_unittest.cc#newcode2122 net/disk_cache/entry_unittest.cc:2122: // The simple cache backend isn't ...
7 years, 8 months ago (2013-04-17 15:14:46 UTC) #12
gavinp
https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/entry_unittest.cc File net/disk_cache/entry_unittest.cc (right): https://codereview.chromium.org/14130015/diff/19001/net/disk_cache/entry_unittest.cc#newcode2122 net/disk_cache/entry_unittest.cc:2122: // The simple cache backend isn't intended to work ...
7 years, 8 months ago (2013-04-17 15:18:48 UTC) #13
felipeg
https://chromiumcodereview.appspot.com/14130015/diff/19001/net/disk_cache/entry_unittest.cc File net/disk_cache/entry_unittest.cc (right): https://chromiumcodereview.appspot.com/14130015/diff/19001/net/disk_cache/entry_unittest.cc#newcode2122 net/disk_cache/entry_unittest.cc:2122: // The simple cache backend isn't intended to work ...
7 years, 8 months ago (2013-04-17 15:53:57 UTC) #14
pasko-google - do not use
oh, and please add the BUG=
7 years, 8 months ago (2013-04-17 16:02:15 UTC) #15
gavinp
https://chromiumcodereview.appspot.com/14130015/diff/26005/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/14130015/diff/26005/net/disk_cache/simple/simple_entry_impl.cc#newcode95 net/disk_cache/simple/simple_entry_impl.cc:95: DCHECK(!operation_running_); I think this is bad; it's always valid ...
7 years, 8 months ago (2013-04-17 16:31:37 UTC) #16
felipeg
https://chromiumcodereview.appspot.com/14130015/diff/26005/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/14130015/diff/26005/net/disk_cache/simple/simple_entry_impl.cc#newcode95 net/disk_cache/simple/simple_entry_impl.cc:95: DCHECK(!operation_running_); On 2013/04/17 16:31:37, gavinp wrote: > I think ...
7 years, 8 months ago (2013-04-17 16:54:59 UTC) #17
gavinp
Looks great. The patches didn't apply to trunk in the try bots, so probably just ...
7 years, 8 months ago (2013-04-18 05:39:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felipeg@chromium.org/14130015/55001
7 years, 8 months ago (2013-04-18 10:37:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felipeg@chromium.org/14130015/55003
7 years, 8 months ago (2013-04-18 10:49:52 UTC) #20
commit-bot: I haz the power
Change committed as 194908
7 years, 8 months ago (2013-04-18 13:01:42 UTC) #21
gavinp
7 years, 8 months ago (2013-04-19 05:51:39 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/14130015/diff/55003/net/disk_cache/simple/sim...
File net/disk_cache/simple/simple_entry_impl.cc (right):

https://codereview.chromium.org/14130015/diff/55003/net/disk_cache/simple/sim...
net/disk_cache/simple/simple_entry_impl.cc:259:
DCHECK(pending_operations_.size() == 0);
Oops.

Powered by Google App Engine
This is Rietveld 408576698