Description[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
Committed: https://crrev.com/631881144b032483cd60b26e054539fd819b6713
Cr-Commit-Position: refs/heads/master@{#414885}
Patch Set 1 #
Messages
Total messages: 16 (9 generated)
|