sqldb: reset out of scope containers on potential ExecTx retry

As SQL serializaton errors can lead to transaction retries we need to
ensure that we reset any out of scope containers where we accumulate
results. Otherwise partial data from a previously executed transacton
retry may be returned along with the latest result.
This commit is contained in:
Andras Banki-Horvath committed 2024-03-27 17:59:54 +01:00
1 parent b76f733a9e
commit a1a7982646
2 files changed
+8 -1

No files matched your search

@@ -401,6 +401,9 @@ bitcoin peers' feefilter values into account](https://github.com/lightningnetwor
start](https://github.com/lightningnetwork/lnd/pull/8568) if native SQL is
enabled but the channeldb already has any KV invoices stored.
* [Fix a bug](https://github.com/lightningnetwork/lnd/pull/8595) when retrying
SQL InvoiceDB transactions due to database errors.
## Code Health
* [Remove database pointers](https://github.com/lightningnetwork/lnd/pull/8117)