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

Issue 690723004: Add per attachment metadata records. (Closed)

Created:
6 years, 1 month ago by pavely
Modified:
6 years, 1 month ago
Reviewers:
stanisc, *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

Add per attachment metadata records. Currently metadata record only contains size and it is not used anywhere. In the future size will be used for storage management by datatypes. Next step is to add crc to metadata record. BUG=424304 R=maniscalco@chromium.org Committed: https://crrev.com/ab997839d3c3b55ddf158db57f0ec87e01762975 Cr-Commit-Position: refs/heads/master@{#302166}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Changes after feedback. #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -60 lines) Patch
M sync/internal_api/attachments/on_disk_attachment_store.cc View 1 9 chunks +98 lines, -56 lines 0 comments Download
M sync/internal_api/attachments/on_disk_attachment_store_unittest.cc View 1 4 chunks +71 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/proto/attachment_store.proto View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M sync/internal_api/public/attachments/on_disk_attachment_store.h View 1 chunk +12 lines, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
pavely
PTAL.
6 years, 1 month ago (2014-10-29 20:11:20 UTC) #1
maniscalco
Just a few nits: https://codereview.chromium.org/690723004/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/690723004/diff/1/sync/internal_api/attachments/on_disk_attachment_store.cc#newcode49 sync/internal_api/attachments/on_disk_attachment_store.cc:49: read_options.verify_checksums = false; WDYT about ...
6 years, 1 month ago (2014-10-30 16:40:20 UTC) #2
pavely
Adding Stan per his request. Forgot to do it yesterday.
6 years, 1 month ago (2014-10-30 17:14:53 UTC) #5
pavely
PTAL https://codereview.chromium.org/690723004/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/690723004/diff/1/sync/internal_api/attachments/on_disk_attachment_store.cc#newcode49 sync/internal_api/attachments/on_disk_attachment_store.cc:49: read_options.verify_checksums = false; On 2014/10/30 16:40:20, maniscalco wrote: ...
6 years, 1 month ago (2014-10-30 18:28:37 UTC) #6
maniscalco
LGTM https://codereview.chromium.org/690723004/diff/1/sync/internal_api/attachments/proto/attachment_store.proto File sync/internal_api/attachments/proto/attachment_store.proto (right): https://codereview.chromium.org/690723004/diff/1/sync/internal_api/attachments/proto/attachment_store.proto#newcode24 sync/internal_api/attachments/proto/attachment_store.proto:24: message AttachmentRecordMetadata { On 2014/10/30 18:28:36, pavely wrote: ...
6 years, 1 month ago (2014-10-30 18:33:10 UTC) #7
stanisc
lgtm https://codereview.chromium.org/690723004/diff/20001/sync/internal_api/attachments/on_disk_attachment_store.cc File sync/internal_api/attachments/on_disk_attachment_store.cc (right): https://codereview.chromium.org/690723004/diff/20001/sync/internal_api/attachments/on_disk_attachment_store.cc#newcode28 sync/internal_api/attachments/on_disk_attachment_store.cc:28: const char kMetadataPrefix[] = "metadata-"; It probably doesn't ...
6 years, 1 month ago (2014-10-30 18:56:59 UTC) #8
pavely
https://codereview.chromium.org/690723004/diff/20001/sync/internal_api/attachments/on_disk_attachment_store.cc File sync/internal_api/attachments/on_disk_attachment_store.cc (right): https://codereview.chromium.org/690723004/diff/20001/sync/internal_api/attachments/on_disk_attachment_store.cc#newcode28 sync/internal_api/attachments/on_disk_attachment_store.cc:28: const char kMetadataPrefix[] = "metadata-"; On 2014/10/30 18:56:59, stanisc ...
6 years, 1 month ago (2014-10-30 19:54:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/690723004/60001
6 years, 1 month ago (2014-10-30 19:54:52 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-10-30 21:59:00 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 21:59:36 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ab997839d3c3b55ddf158db57f0ec87e01762975
Cr-Commit-Position: refs/heads/master@{#302166}

Powered by Google App Engine
This is Rietveld 408576698