mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
db: Do not exit transaction on failure
Automatically exiting the DB transaction upon any failure is strange since it'll kill any later attempt to commit. The commit itself should be used to verify that everything was ok.
This commit is contained in:
parent
a5b425faad
commit
cfe87b16c3
1 changed files with 0 additions and 1 deletions
|
@ -99,7 +99,6 @@ bool PRINTF_FMT(3, 4)
|
|||
|
||||
err = sqlite3_exec(db->sql, cmd, NULL, NULL, &errmsg);
|
||||
if (err != SQLITE_OK) {
|
||||
db->in_transaction = false;
|
||||
tal_free(db->err);
|
||||
db->err = tal_fmt(db, "%s:%s:%s:%s", caller,
|
||||
sqlite3_errstr(err), cmd, errmsg);
|
||||
|
|
Loading…
Add table
Reference in a new issue