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

Issue 493643002: [SyncFS] Fix reaching NOTREACHED() in MetadataDatabase (Closed)

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

Description

[SyncFS] Fix reaching NOTREACHED() in MetadataDatabase::GetConflictingTrackers Trackers for empty-title files were not handled in AddToPathIndexes() and UpdateInPathIndexes(), while they are handled in RemoveFromPathIndexes(). So an entry in multi-backing lists could be inconsistent. This CL fixes those two methods' behavior. BUG=405448 TEST=./unit_tests --gtest_filter="MetadataDatabaseIndexOnDisk*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291186

Patch Set 1 #

Total comments: 8

Patch Set 2 : Work for nits #

Total comments: 2

Patch Set 3 : Work for a nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -20 lines) Patch
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc View 1 2 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
peria
PTL. Changes of metadata_database_index.cc in http://crrev.com/275363 may be a reference.
6 years, 4 months ago (2014-08-20 09:10:24 UTC) #1
tzik
lgtm https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode889 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:889: GenerateMultiBackingParentAndTitleKey(parent_id, title); It doesn't need to be fix ...
6 years, 4 months ago (2014-08-20 10:48:47 UTC) #2
nhiroki
> Handling of trackers for empty-title files was not enough. > So an entry in ...
6 years, 4 months ago (2014-08-21 03:03:15 UTC) #3
nhiroki
https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode899 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:899: GenerateActiveTrackerIDByParentAndTitleKey(parent_id, title), Just to confirm... is an empty title ...
6 years, 4 months ago (2014-08-21 03:12:52 UTC) #4
peria
https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc (right): https://codereview.chromium.org/493643002/diff/1/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc#newcode889 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.cc:889: GenerateMultiBackingParentAndTitleKey(parent_id, title); On 2014/08/20 10:48:47, tzik wrote: > It ...
6 years, 4 months ago (2014-08-21 06:25:40 UTC) #5
nhiroki
LGTM (I didn't take a close look at the test though) https://codereview.chromium.org/493643002/diff/20001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc (right): ...
6 years, 4 months ago (2014-08-21 06:53:28 UTC) #6
peria
https://codereview.chromium.org/493643002/diff/20001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc File chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc (right): https://codereview.chromium.org/493643002/diff/20001/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc#newcode488 chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk_unittest.cc:488: On 2014/08/21 06:53:28, nhiroki wrote: > nit: blank lines ...
6 years, 4 months ago (2014-08-21 07:10:58 UTC) #7
peria
The CQ bit was checked by peria@chromium.org
6 years, 4 months ago (2014-08-21 07:11:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peria@chromium.org/493643002/40001
6 years, 4 months ago (2014-08-21 07:12:22 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 13:13:43 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 21:12:36 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (40001) as 291186

Powered by Google App Engine
This is Rietveld 408576698