DescriptionLoginDatabase::Init: rollback before closing a DB
Currently, LoginDatabase::Init closes its sql::Connection on error. It also
uses an sql::Transaction to roll back changes made so far. Unfortunately, it
does so in the wrong order.
This CL fixes that and adds a test for it.
BUG=639803
Committed: https://crrev.com/7bdd9928d167b3de18f68219a3ea0b817cb99ad3
Cr-Commit-Position: refs/heads/master@{#413460}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Review #Patch Set 3 : CreateUniqueTempDir #
Total comments: 1
Messages
Total messages: 21 (11 generated)
|