Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlite: fix issue in ValidateDBConfig()
If a transaction is started it must either be committed or rolled back. The function uses defer to call `tx.Rollback()` if there is an error returned. However it also called `tx.Commit()` and afterwards further errors can be returned which means it tries to roll back a already committed transaction which cannot work. This fix is to make sure tx.Commit() is the last call in that function. see #20731 [NO NEW TESTS NEEDED] Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information