commit 8bf2899f73680873fa726508f1ee80f48c5f7f4e parent 99a3a309c4d4d65322f3f73ae7977d13d4b49d22 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 8 Nov 2026 23:21:40 +0100 consider global_qs before insert_balance update Diffstat:
| M | src/auditor/taler-helper-auditor-wire-debit.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/auditor/taler-helper-auditor-wire-debit.c b/src/auditor/taler-helper-auditor-wire-debit.c @@ -567,6 +567,13 @@ commit (enum GNUNET_DB_QueryStatus qs) "Transaction logic ended with status %d\n", qs); TALER_EXCHANGEDB_rollback (TALER_ARL_edb); + /* A callback that failed recorded its status in #global_qs and + stopped its iteration; do not checkpoint past what it skipped. */ + if ( (0 <= qs) && + (0 > global_qs) ) + qs = global_qs; + if (0 > qs) + goto handle_db_error; qs = TALER_AUDITORDB_insert_balance ( TALER_ARL_adb, TALER_ARL_SET_AB (total_drained),