[sql] Track SQLite error codes from sql::Recovery ATTACH.
The major reason for sql::Recover::Begin() to fail is in the statement attaching the original database to the recovery database. I believe this is because of SQLITE_NOTADB. This is to verify that hypothesis. If the hypothesis is true, then the best course of action is to Raze() the database, as SQLITE_NOTADB means that some or all of the SQLite header data appears to be garbage. BUG=597785 R=michaeln@chromium.org Review-Url: https://codereview.chromium.org/2274883003 Cr-Commit-Position: refs/heads/master@{#414885}
Showing
Please register or sign in to comment