Description[Sync] Update DirectoryBackingStore to detect Sync DB corruption
Leverage sql::Connection's error handling mechanism to detect
"catastrophic" errors like SQLITE_CORRUPT.
Add unit tests that verify behavior of SetCatastrophicErrorHandler and
trigger DB corruption.
Because handler is not installed by default, this change will have no
impact on Sync's behavior. A future change will connect Directory to
DirectoryBackingStore's to ensure Sync is shutdown when DB corruption
occurs.
This change depends on https://codereview.chromium.org/1069313004/.
BUG=470993
Committed: https://crrev.com/4c4a52e3948bbf601248983afedb4e65d5a7ac2f
Cr-Commit-Position: refs/heads/master@{#325135}
Patch Set 1 #Patch Set 2 : Changes from self-review. #Patch Set 3 : Fix BUILD.gn. #Patch Set 4 : Add MessageLoop to DeferredOnDiskDirectoryBackingStoreTest. #Patch Set 5 : Merge in issue 1075993003. #Patch Set 6 : Merge with master. #Patch Set 7 : Merge with master. #
Total comments: 7
Patch Set 8 : Apply CR feedback. #
Messages
Total messages: 14 (4 generated)
|