Description[sql] Prevent recovery against a closed database.
The referenced bug is a crash which appears to happen when recovery is
attempted against a poisoned (or closed) database. Modify
sql::Recovery::Begin() to explicitly short-circuit recovery if the
passed connection handle is not open. Otherwise the recovery code will
work until the recovered data is restored over the original, and then
fail.
Also modify the sql::Connection::ReportDiagnosticInfo() to clear the
error callback while doing any integrity check. This is a bit of a
hack in the interests of not rooting out the crazy error-callback
assumptions at this time.
BUG=583106
Committed: https://crrev.com/874ea1bd6ec404bc536c45098910694dea5adb34
Cr-Commit-Position: refs/heads/master@{#372896}
Patch Set 1 #Patch Set 2 : Detect API mis-use. #
Total comments: 1
Messages
Total messages: 9 (3 generated)
|