Description[Sync] Stop deleting LevelDB files when deleting Directory
The LevelDB folder backing ModelTypeStore is inside Sync Data folder.
While this change is being driven by race conditions from sync trying
to delete this folder while it is being used, this setup is fundamental
flawed. The ModelTypeStores will hold model type specific information
that needs to be persistent across sign outs and disabling sync.
The approach this CL takes to fix this problem is the modify the
deletion logic to only affect the Directory (sqllite3) files. This
means that the Sync Data folder will still exist even when sync is off.
BUG=673508, 673887
Committed: https://crrev.com/4234d3c65dc2b0ad0cf19fbf5e9e1e528bc3ddaf
Cr-Commit-Position: refs/heads/master@{#439835}
Patch Set 1 #Patch Set 2 : Reverting init re-ordering, move leveldb outside Sync Data folder. #Patch Set 3 : Rebase #Patch Set 4 : Only delete top level files in sync data folder. #
Total comments: 4
Patch Set 5 : Updated SingleClientDirectorySyncTest to check for immediate files. #Patch Set 6 : Updated for Max's comments. #Dependent Patchsets: Messages
Total messages: 44 (34 generated)
|