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

Issue 23578026: Use SNAPSHOT sync mode for LocalSync (Closed)

Created:
7 years, 3 months ago by kinuko
Modified:
7 years, 3 months ago
Reviewers:
tzik, nhiroki, earthdok
CC:
chromium-reviews, nhiroki+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Use SNAPSHOT sync mode for LocalSync LocalFileSyncService keeps the returned snapshot around until ApplyLocalChange finishes, so this change must be transparent to the remote side. This patch depends on: https://codereview.chromium.org/24106002/ BUG=175693 TEST=LocalFileSyncContextTest.PrepareSync_WriteDuringSync_* TEST=DriveFileSyncServiceSyncTest.* TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223913

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : adding shared locking for sync+sync conflict #

Total comments: 6

Patch Set 4 : addressed comments #

Total comments: 1

Patch Set 5 : rebased on thread_bundle fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -84 lines) Patch
M chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc View 1 2 2 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_change_tracker.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context.h View 1 2 3 5 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context.cc View 1 2 3 4 15 chunks +65 lines, -20 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc View 1 2 3 4 20 chunks +122 lines, -28 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service.cc View 1 7 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc View 1 5 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/syncable_file_system_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/syncable_file_system_util.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kinuko
This looks to be working ok too (the amount of change is not that big). ...
7 years, 3 months ago (2013-09-13 14:59:09 UTC) #1
tzik
lgtm https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc File chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc (right): https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc#newcode44 chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc:44: new LocalFileSyncContext(base::FilePath(), maybe, this needs another ScopedTempDir. https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc ...
7 years, 3 months ago (2013-09-17 07:48:41 UTC) #2
nhiroki
lgtm https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc File chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc (right): https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc#newcode276 chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:276: file_task_runner_.get()); indent-nit
7 years, 3 months ago (2013-09-17 08:18:48 UTC) #3
kinuko
Thx! https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc File chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc (right): https://codereview.chromium.org/23578026/diff/62001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc#newcode276 chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:276: file_task_runner_.get()); On 2013/09/17 08:18:48, nhiroki wrote: > indent-nit ...
7 years, 3 months ago (2013-09-17 11:04:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/23578026/80001
7 years, 3 months ago (2013-09-17 11:06:31 UTC) #5
earthdok
Please fix the memory leak as well.
7 years, 3 months ago (2013-09-17 12:24:57 UTC) #6
earthdok
https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc File chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc (left): https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc#oldcode259 chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc:259: scoped_ptr<base::Thread> file_thread_; It looks like there's a race condition ...
7 years, 3 months ago (2013-09-17 12:39:26 UTC) #7
kinuko (google)
2013/09/17 21:39 <earthdok@chromium.org>: > > > https://codereview.chromium.org/23578026/diff/80001/chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc > File > chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc > (left): > > ...
7 years, 3 months ago (2013-09-17 13:36:09 UTC) #8
earthdok
> Reg: leak, sorry, which leak error are you refering to? I'm working on one ...
7 years, 3 months ago (2013-09-17 13:41:59 UTC) #9
kinuko
On 2013/09/17 13:41:59, earthdok wrote: > > Reg: leak, sorry, which leak error are you ...
7 years, 3 months ago (2013-09-17 13:45:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/23578026/80001
7 years, 3 months ago (2013-09-18 05:54:43 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-18 05:54:47 UTC) #12
kinuko
Rebased on top of thread_bundle fix. Will see if test goes happy
7 years, 3 months ago (2013-09-18 07:19:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/23578026/113001
7 years, 3 months ago (2013-09-18 12:43:55 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-18 19:39:47 UTC) #15
Message was sent while issue was closed.
Change committed as 223913

Powered by Google App Engine
This is Rietveld 408576698