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

Issue 306813002: [SyncFS] Make routines using metadata database async (Closed)

Created:
6 years, 6 months ago by peria
Modified:
6 years, 6 months ago
Reviewers:
nhiroki, tzik
CC:
chromium-reviews, kinuko+fileapi, tzik
Visibility:
Public.

Description

[SyncFS] Make routines using metadata database run asynchronously. Some methods not used in product code keep to call GetMetadataDatabase directly. BUG=347425 TEST=./unit_tests --gtest_filter="DriveBackendSyncTest.*:SyncEngine*:Conflict*:RegisterApp*:RemoteTo*:LocalTo*:ListChange*:MetadataDatabase*:TaskDep*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274213

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add a comment #

Total comments: 2

Patch Set 3 : Remove needless method #

Total comments: 4

Patch Set 4 : Make some methods async #

Patch Set 5 : MetadataDababase in DriveBackendSyncTest async #

Patch Set 6 : Remove neeldess accessors #

Patch Set 7 : Remove other needless methods #

Patch Set 8 : Add a note comment #

Total comments: 4

Patch Set 9 : Work for nits #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -55 lines) Patch
M chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +78 lines, -15 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_engine_unittest.cc View 1 2 3 4 5 7 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.h View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.cc View 1 2 4 5 6 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
peria
PTL
6 years, 6 months ago (2014-05-29 01:21:35 UTC) #1
nhiroki
https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode473 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:473: MetadataDatabase* SyncEngine::GetMetadataDatabaseForTesting() { In tests, callers of this function ...
6 years, 6 months ago (2014-05-29 01:56:13 UTC) #2
peria
https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode473 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:473: MetadataDatabase* SyncEngine::GetMetadataDatabaseForTesting() { On 2014/05/29 01:56:13, nhiroki wrote: > ...
6 years, 6 months ago (2014-05-29 02:15:29 UTC) #3
tzik
https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode521 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:521: void SyncEngine::DidPromoteDemotedChanges(size_t num_trackers) { Please merge this to OnPendingFileListUpdated
6 years, 6 months ago (2014-05-29 02:24:24 UTC) #4
tzik
https://codereview.chromium.org/306813002/diff/20001/chrome/browser/sync_file_system/drive_backend/sync_engine.h File chrome/browser/sync_file_system/drive_backend/sync_engine.h (right): https://codereview.chromium.org/306813002/diff/20001/chrome/browser/sync_file_system/drive_backend/sync_engine.h#newcode127 chrome/browser/sync_file_system/drive_backend/sync_engine.h:127: // may bring race condition. I believe we should ...
6 years, 6 months ago (2014-05-29 02:31:09 UTC) #5
peria
https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode521 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:521: void SyncEngine::DidPromoteDemotedChanges(size_t num_trackers) { On 2014/05/29 02:24:25, tzik wrote: ...
6 years, 6 months ago (2014-05-29 03:11:46 UTC) #6
nhiroki
https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/1/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode473 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:473: MetadataDatabase* SyncEngine::GetMetadataDatabaseForTesting() { On 2014/05/29 02:15:29, peria wrote: > ...
6 years, 6 months ago (2014-05-29 04:12:57 UTC) #7
tzik
https://codereview.chromium.org/306813002/diff/40001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc File chrome/browser/sync_file_system/drive_backend/sync_engine.cc (right): https://codereview.chromium.org/306813002/diff/40001/chrome/browser/sync_file_system/drive_backend/sync_engine.cc#newcode514 chrome/browser/sync_file_system/drive_backend/sync_engine.cc:514: void SyncEngine::UpdateRegisteredAppsForTesting() { Could you consolidate this to SyncWorker's ...
6 years, 6 months ago (2014-05-30 05:23:47 UTC) #8
peria
PTAL. https://codereview.chromium.org/306813002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc (right): https://codereview.chromium.org/306813002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc#newcode506 chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc:506: return remote_sync_service_->GetMetadataDatabaseForTesting(); On 2014/05/29 04:12:58, nhiroki wrote: > ...
6 years, 6 months ago (2014-06-02 04:30:27 UTC) #9
tzik
lgtm
6 years, 6 months ago (2014-06-02 05:16:40 UTC) #10
nhiroki
On 2014/06/02 04:30:27, peria wrote: > PTAL. > > https://codereview.chromium.org/306813002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc > File > chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc > ...
6 years, 6 months ago (2014-06-02 05:43:25 UTC) #11
nhiroki
LGTM with comments. https://codereview.chromium.org/306813002/diff/140001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc (right): https://codereview.chromium.org/306813002/diff/140001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc#newcode568 chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc:568: MetadataDatabase* metadata_database() { Can you make ...
6 years, 6 months ago (2014-06-02 05:43:56 UTC) #12
peria
Thank you for your reviews. https://codereview.chromium.org/306813002/diff/140001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc (right): https://codereview.chromium.org/306813002/diff/140001/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc#newcode568 chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc:568: MetadataDatabase* metadata_database() { On ...
6 years, 6 months ago (2014-06-02 05:57:29 UTC) #13
peria
Thank you for your reviews.
6 years, 6 months ago (2014-06-02 05:57:31 UTC) #14
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-02 05:57:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/306813002/90007
6 years, 6 months ago (2014-06-02 05:57:53 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-02 08:05:49 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 08:06:24 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/12787)
6 years, 6 months ago (2014-06-02 08:06:25 UTC) #19
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-02 08:07:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/306813002/90007
6 years, 6 months ago (2014-06-02 08:07:29 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-02 08:08:21 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 08:08:55 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/12787)
6 years, 6 months ago (2014-06-02 08:08:56 UTC) #24
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-02 08:10:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/306813002/90007
6 years, 6 months ago (2014-06-02 08:11:02 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-02 08:12:09 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 08:12:44 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/12787)
6 years, 6 months ago (2014-06-02 08:12:44 UTC) #29
peria
The CQ bit was checked by peria@chromium.org
6 years, 6 months ago (2014-06-02 08:17:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/306813002/160001
6 years, 6 months ago (2014-06-02 08:17:31 UTC) #31
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 12:31:03 UTC) #32
Message was sent while issue was closed.
Change committed as 274213

Powered by Google App Engine
This is Rietveld 408576698