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

Issue 2342133002: [sync] Verify existence of the root when loading DirectoryBackingStore (Closed)

Created:
4 years, 3 months ago by Patrick Noland
Modified:
4 years, 3 months ago
Reviewers:
pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Verify existence of the root when loading DirectoryBackingStore Currently, DirectoryBackingStore::VerifyReferenceIntegrity only verifies that all parent ids are valid. This ignores the case of a single, corrupted root node, which can happen during first sync. This CL adds a check that the root node exists with the expected id("r"). R=pavely@chromium.org BUG=642690 Committed: https://crrev.com/6bc75f3306ecd9d4a3d1839b6afac4cf4c3c8d2b Cr-Commit-Position: refs/heads/master@{#419040}

Patch Set 1 : [sync] Verify existence of the root when loading DirectoryBackingStore #

Total comments: 2

Patch Set 2 : include syncable_id, fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -0 lines) Patch
M components/sync/syncable/directory_backing_store.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M components/sync/syncable/directory_backing_store_unittest.cc View 3 chunks +63 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
Patrick Noland
Pavel, PTAL
4 years, 3 months ago (2016-09-15 22:01:21 UTC) #7
pavely
lgtm https://codereview.chromium.org/2342133002/diff/20001/components/sync/syncable/directory_backing_store.cc File components/sync/syncable/directory_backing_store.cc (right): https://codereview.chromium.org/2342133002/diff/20001/components/sync/syncable/directory_backing_store.cc#newcode1645 components/sync/syncable/directory_backing_store.cc:1645: // This function also checks that the root ...
4 years, 3 months ago (2016-09-15 22:50:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2342133002/40001
4 years, 3 months ago (2016-09-15 22:58:17 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 3 months ago (2016-09-15 23:50:33 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 23:52:57 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6bc75f3306ecd9d4a3d1839b6afac4cf4c3c8d2b
Cr-Commit-Position: refs/heads/master@{#419040}

Powered by Google App Engine
This is Rietveld 408576698