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

Issue 428063002: [SyncFS] Replace leveldb classes with LevelDBWrapper (Closed)

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

Description

[SyncFS] Replace leveldb classes with LevelDBWrapper. In most files under sync_file_system/drive_backend/, leveldb::DB and leveldb::WriteBatch are replaced with LevelDBWrapper to have a database transparent. BUG=347425 TEST=./unit_tests --gtest_filter="MetadataDatabase*:DriveBackend*:LevelDBWrapper*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287573

Patch Set 1 : #

Total comments: 21

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Work for a nit #

Patch Set 4 : Rebase on cl/437943002 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+498 lines, -676 lines) Patch
M chrome/browser/sync_file_system/drive_backend/drive_backend_util.h View 1 2 chunks +11 lines, -17 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc View 1 2 chunks +25 lines, -30 lines 1 comment Download
M chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/leveldb_wrapper_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database.h View 1 2 3 5 chunks +15 lines, -27 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database.cc View 1 2 3 45 chunks +118 lines, -176 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.h View 6 chunks +13 lines, -25 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.cc View 15 chunks +31 lines, -36 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h View 3 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h View 8 chunks +30 lines, -58 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc View 1 47 chunks +125 lines, -137 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc View 21 chunks +68 lines, -94 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc View 1 2 3 7 chunks +19 lines, -21 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc View 1 2 3 12 chunks +23 lines, -26 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
peria
PTL. Most of changes are only replacing changes, but this CL has many diffs, so ...
6 years, 4 months ago (2014-07-30 10:10:01 UTC) #1
nhiroki
Looks pretty good. Nitpicks only. https://codereview.chromium.org/428063002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h File chrome/browser/sync_file_system/drive_backend/drive_backend_util.h (right): https://codereview.chromium.org/428063002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h#newcode38 chrome/browser/sync_file_system/drive_backend/drive_backend_util.h:38: LevelDBWrapper* db); nit: indent ...
6 years, 4 months ago (2014-08-01 09:43:39 UTC) #2
peria
https://codereview.chromium.org/428063002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h File chrome/browser/sync_file_system/drive_backend/drive_backend_util.h (right): https://codereview.chromium.org/428063002/diff/40001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h#newcode38 chrome/browser/sync_file_system/drive_backend/drive_backend_util.h:38: LevelDBWrapper* db); On 2014/08/01 09:43:38, nhiroki wrote: > nit: ...
6 years, 4 months ago (2014-08-04 03:13:43 UTC) #3
tzik
Looks good. But this has thread race, and a transaction may be mixed to the ...
6 years, 4 months ago (2014-08-04 03:26:23 UTC) #4
peria
https://codereview.chromium.org/428063002/diff/60001/chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h File chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h (right): https://codereview.chromium.org/428063002/diff/60001/chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h#newcode92 chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h:92: // usages of driva_backend::MigrateDatabaseFromVxToVy() under On 2014/08/04 03:26:23, tzik ...
6 years, 4 months ago (2014-08-04 03:33:19 UTC) #5
tzik
Could you rebase this CL onto https://codereview.chromium.org/437943002/?
6 years, 4 months ago (2014-08-04 06:45:40 UTC) #6
peria
On 2014/08/04 06:45:40, tzik wrote: > Could you rebase this CL onto https://codereview.chromium.org/437943002/ Done.
6 years, 4 months ago (2014-08-04 06:56:56 UTC) #7
tzik
lgtm
6 years, 4 months ago (2014-08-05 06:10:55 UTC) #8
peria
The CQ bit was checked by peria@chromium.org
6 years, 4 months ago (2014-08-05 06:12:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/428063002/100001
6 years, 4 months ago (2014-08-05 06:13:51 UTC) #10
nhiroki
lgtm https://codereview.chromium.org/428063002/diff/100001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc File chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc (right): https://codereview.chromium.org/428063002/diff/100001/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc#newcode25 chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc:25: if (db) Can you replace this and others ...
6 years, 4 months ago (2014-08-05 07:32:16 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 10:30:34 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 11:14:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/1205)
6 years, 4 months ago (2014-08-05 11:14:42 UTC) #14
peria
The CQ bit was checked by peria@chromium.org
6 years, 4 months ago (2014-08-05 12:05:05 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/428063002/100001
6 years, 4 months ago (2014-08-05 12:06:26 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-05 19:02:59 UTC) #17
Message was sent while issue was closed.
Change committed as 287573

Powered by Google App Engine
This is Rietveld 408576698