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

Issue 3054021: Sync: set BASE_VERSION to entry.version() instead of 0 when changing (Closed)

Created:
10 years, 5 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
Reviewers:
chron_chromium.org
CC:
chromium-reviews, ben+cc_chromium.org, Raghu Simha, idana, Paweł Hajdan Jr., tim (not reviewing)
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Sync: set BASE_VERSION to entry.version() instead of 0 when changing IDs, but also force IS_UNAPPLIED. This allows BV to be valid in case the item is marked UNSYNCED and later commits, but still allows the update application to proceed if it's not. BUG=49715 TEST=See bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53871

Patch Set 1 #

Patch Set 2 : Self-review. #

Patch Set 3 : Sync to trunk; add comment per chron. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -26 lines) Patch
M chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/sync/engine/process_updates_command.cc View 1 2 1 chunk +24 lines, -15 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ncarter (slow)
Still doing manual testing on this, but it looks good so far.
10 years, 5 months ago (2010-07-27 21:39:09 UTC) #1
chron_chromium.org
Is the spurious commit really OK? Won't the commit happen with the latest version as ...
10 years, 5 months ago (2010-07-27 22:36:53 UTC) #2
ncarter (slow)
I think this is the safest behavior for M6. Before, we'd do a spurious commit ...
10 years, 5 months ago (2010-07-27 23:05:27 UTC) #3
chron_chromium.org
LGTM But please document the spurious commit case as a comment. It will result in ...
10 years, 5 months ago (2010-07-27 23:07:59 UTC) #4
ncarter (slow)
10 years, 5 months ago (2010-07-27 23:51:29 UTC) #5
On 2010/07/27 23:07:59, chron_chromium.org wrote:
> But please document the spurious commit case as a comment. It will result in
> an overwrite. (Which I don't think will loop)

Done, and I manually tested this with an autofill conflict; it doesn't loop.

Powered by Google App Engine
This is Rietveld 408576698