Description[sql] Use IGNORE conflict resolution in recovery.
One way databases get corrupted is when pages cross transaction
boundaries. Both pages can be valid, but they could contain overlapping
data, resulting in UNIQUE constraint violations. AutoRecoverTable()
handled this by using INSERT OR REPLACE to cause later items to
overwrite earlier items.
Change to INSERT OR IGNORE. This drops later items for UNIQUE
violations, but also handles other constraint violations.
BUG=none
Committed: https://crrev.com/806f499866733d4561aac73f9129d5f5ab727ddd
Cr-Commit-Position: refs/heads/master@{#373617}
Patch Set 1 #
Total comments: 2
Depends on Patchset: Messages
Total messages: 9 (3 generated)
|