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

Issue 266333002: Add most of the metadata-handling code for blobs. It's not quite all there, but (Closed)

Created:
6 years, 7 months ago by ericu
Modified:
6 years, 7 months ago
Reviewers:
jsbell, cmumford
CC:
chromium-reviews, jam, alecflett, ericu+idb_chromium.org, darin-cc_chromium.org, cmumford, dgrogan, jsbell+idb_chromium.org
Visibility:
Public.

Description

Add most of the metadata-handling code for blobs. It's not quite all there, but this is the biggest chunk I can pull out vaguely cleanly. It does contain a couple of fake calls to keep the compiler happy. This CL also makes SetUpMetadata a member in order to ease testing in a later CL. This depends on https://codereview.chromium.org/261843004/. BUG=108012 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270016 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273048

Patch Set 1 #

Patch Set 2 : Fix diffs #

Patch Set 3 : Added back a removed function #

Patch Set 4 : Coalesced fake calls #

Total comments: 6

Patch Set 5 : Rolled in Josh's feedback #

Total comments: 32

Patch Set 6 : Rolled in Chris's feedback and more from Josh. #

Patch Set 7 : Fix merge error #

Patch Set 8 : Release build fix. #

Patch Set 9 : Merged out #

Patch Set 10 : Rebased #

Patch Set 11 : Remove PathExists check which we shouldn't now need. #

Patch Set 12 : Added some logging. #

Patch Set 13 : More debugging info. #

Patch Set 14 : Yet still more debugging info. #

Patch Set 15 : Even yet still more debugging info. #

Patch Set 16 : Attempted fix. #

Patch Set 17 : Remove debugging code; revert to approved version. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -57 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 3 4 5 6 4 chunks +13 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 4 5 6 7 9 10 12 13 14 15 16 37 chunks +379 lines, -54 lines 0 comments Download
M content/browser/indexed_db/indexed_db_leveldb_coding.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
ericu
6 years, 7 months ago (2014-05-05 22:11:19 UTC) #1
ericu
6 years, 7 months ago (2014-05-05 23:02:53 UTC) #2
jsbell
Not done, just initial notes https://codereview.chromium.org/266333002/diff/60001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/60001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode545 content/browser/indexed_db/indexed_db_backing_store.cc:545: PutInt(leveldb_transaction, key, blob_key_generator_current_number); Must ...
6 years, 7 months ago (2014-05-06 00:24:16 UTC) #3
ericu
https://codereview.chromium.org/266333002/diff/60001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/60001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode545 content/browser/indexed_db/indexed_db_backing_store.cc:545: PutInt(leveldb_transaction, key, blob_key_generator_current_number); On 2014/05/06 00:24:16, jsbell wrote: > ...
6 years, 7 months ago (2014-05-06 17:26:19 UTC) #4
jsbell
lgtm https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode661 content/browser/indexed_db/indexed_db_backing_store.cc:661: EncodeVarInt(info.size(), &ret); Can you add '(var int') to ...
6 years, 7 months ago (2014-05-06 18:29:48 UTC) #5
jsbell
On 2014/05/06 17:26:19, ericu wrote: > Updated. There's nothing in the key about what colors ...
6 years, 7 months ago (2014-05-06 18:31:37 UTC) #6
cmumford
https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode376 content/browser/indexed_db/indexed_db_backing_store.cc:376: INTERNAL_WRITE_ERROR(SET_UP_METADATA); INTERNAL_READ_ERROR_UNTESTED https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode420 content/browser/indexed_db/indexed_db_backing_store.cc:420: INTERNAL_WRITE_ERROR(SET_UP_METADATA); INTERNAL_READ_ERROR_UNTESTED https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode514 content/browser/indexed_db/indexed_db_backing_store.cc:514: INTERNAL_READ_ERROR(GET_BLOB_KEY_GENERATOR_CURRENT_NUMBER); ...
6 years, 7 months ago (2014-05-06 18:33:10 UTC) #7
ericu
On 2014/05/06 18:31:37, jsbell wrote: > On 2014/05/06 17:26:19, ericu wrote: > > Updated. There's ...
6 years, 7 months ago (2014-05-06 18:40:06 UTC) #8
ericu
https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode376 content/browser/indexed_db/indexed_db_backing_store.cc:376: INTERNAL_WRITE_ERROR(SET_UP_METADATA); On 2014/05/06 18:33:11, cmumford wrote: > INTERNAL_READ_ERROR_UNTESTED INTERNAL_WRITE_ERROR_UNTESTED? ...
6 years, 7 months ago (2014-05-06 20:07:42 UTC) #9
cmumford
https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode420 content/browser/indexed_db/indexed_db_backing_store.cc:420: INTERNAL_WRITE_ERROR(SET_UP_METADATA); On 2014/05/06 20:07:42, ericu wrote: > On 2014/05/06 ...
6 years, 7 months ago (2014-05-06 20:41:47 UTC) #10
ericu
On 2014/05/06 20:41:47, cmumford wrote: > https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc > File content/browser/indexed_db/indexed_db_backing_store.cc (right): > > https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode420 > ...
6 years, 7 months ago (2014-05-06 20:48:42 UTC) #11
ericu
On 2014/05/06 20:48:42, ericu wrote: > On 2014/05/06 20:41:47, cmumford wrote: > > > https://codereview.chromium.org/266333002/diff/80001/content/browser/indexed_db/indexed_db_backing_store.cc ...
6 years, 7 months ago (2014-05-09 15:57:29 UTC) #12
cmumford
lgtm
6 years, 7 months ago (2014-05-09 16:19:41 UTC) #13
ericu
The CQ bit was checked by ericu@chromium.org
6 years, 7 months ago (2014-05-09 16:33:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/266333002/100001
6 years, 7 months ago (2014-05-09 16:34:57 UTC) #15
ericu
On 2014/05/09 16:34:57, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 7 months ago (2014-05-09 18:00:10 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 18:26:53 UTC) #17
ericu
The CQ bit was unchecked by ericu@chromium.org
6 years, 7 months ago (2014-05-09 18:27:18 UTC) #18
ericu
The CQ bit was checked by ericu@chromium.org
6 years, 7 months ago (2014-05-11 22:51:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/266333002/100001
6 years, 7 months ago (2014-05-11 22:51:45 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 00:29:25 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 00:35:06 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/141345)
6 years, 7 months ago (2014-05-12 00:35:07 UTC) #23
ericu
The CQ bit was checked by ericu@chromium.org
6 years, 7 months ago (2014-05-13 04:12:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/266333002/140001
6 years, 7 months ago (2014-05-13 04:12:49 UTC) #25
commit-bot: I haz the power
Change committed as 270016
6 years, 7 months ago (2014-05-13 04:59:48 UTC) #26
vabr (Chromium)
A revert of this CL has been created in https://codereview.chromium.org/288523002/ by vabr@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-13 07:02:54 UTC) #27
RyanS
A revert of this CL has been created in https://codereview.chromium.org/280703007/ by rschoen@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-13 09:33:54 UTC) #28
ericu
The CQ bit was checked by ericu@chromium.org
6 years, 7 months ago (2014-05-16 18:20:12 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/266333002/160001
6 years, 7 months ago (2014-05-16 18:20:51 UTC) #30
commit-bot: I haz the power
Change committed as 271097
6 years, 7 months ago (2014-05-16 21:30:02 UTC) #31
ericu
The CQ bit was checked by ericu@chromium.org
6 years, 7 months ago (2014-05-27 20:47:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/266333002/310006
6 years, 7 months ago (2014-05-27 20:48:17 UTC) #33
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 22:00:55 UTC) #34
Message was sent while issue was closed.
Change committed as 273048

Powered by Google App Engine
This is Rietveld 408576698