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

Issue 647553009: Introduce AttachmentStore metadata record (Closed)

Created:
6 years, 2 months ago by pavely
Modified:
6 years, 2 months ago
Reviewers:
maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Introduce AttachmentStore metadata record This change handles different errors during attachment store open: - create record for empty database - fail if record is corrupt or of newer version. BUG=424304 R=maniscalco@chromium.org Committed: https://crrev.com/b58699980317810a3dda9da7c26eb32d95fd260c Cr-Commit-Position: refs/heads/master@{#301270}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Update after feedback #

Patch Set 3 : GN fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -24 lines) Patch
M sync/BUILD.gn View 1 2 chunks +3 lines, -1 line 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store.cc View 1 6 chunks +77 lines, -15 lines 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store_unittest.cc View 4 chunks +90 lines, -2 lines 0 comments Download
A + sync/internal_api/attachments/proto/BUILD.gn View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
A sync/internal_api/attachments/proto/attachment_store.proto View 1 1 chunk +18 lines, -0 lines 0 comments Download
M sync/internal_api/public/attachments/on_disk_attachment_store.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/sync.gyp View 1 4 chunks +30 lines, -2 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
pavely
PTAL.
6 years, 2 months ago (2014-10-21 18:45:32 UTC) #1
maniscalco
Very nice. Just a few questions / nits... https://codereview.chromium.org/647553009/diff/1/sync/BUILD.gn File sync/BUILD.gn (right): https://codereview.chromium.org/647553009/diff/1/sync/BUILD.gn#newcode11 sync/BUILD.gn:11: "//sync/internal_api/attachments/proto", ...
6 years, 2 months ago (2014-10-21 21:41:04 UTC) #2
pavely
PTAL https://codereview.chromium.org/647553009/diff/1/sync/BUILD.gn File sync/BUILD.gn (right): https://codereview.chromium.org/647553009/diff/1/sync/BUILD.gn#newcode11 sync/BUILD.gn:11: "//sync/internal_api/attachments/proto", On 2014/10/21 21:41:03, maniscalco wrote: > sort ...
6 years, 2 months ago (2014-10-24 20:42:55 UTC) #4
maniscalco
LGTM! https://codereview.chromium.org/647553009/diff/1/sync/internal_api/attachments/on_disk_attachment_store.cc File sync/internal_api/attachments/on_disk_attachment_store.cc (right): https://codereview.chromium.org/647553009/diff/1/sync/internal_api/attachments/on_disk_attachment_store.cc#newcode203 sync/internal_api/attachments/on_disk_attachment_store.cc:203: leveldb::ReadOptions read_options; On 2014/10/24 20:42:55, pavely wrote: > ...
6 years, 2 months ago (2014-10-24 21:52:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647553009/40001
6 years, 2 months ago (2014-10-24 21:55:45 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/11286)
6 years, 2 months ago (2014-10-24 23:51:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647553009/60001
6 years, 2 months ago (2014-10-25 00:28:11 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
6 years, 2 months ago (2014-10-25 02:41:05 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-25 02:41:56 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b58699980317810a3dda9da7c26eb32d95fd260c
Cr-Commit-Position: refs/heads/master@{#301270}

Powered by Google App Engine
This is Rietveld 408576698