diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-28 15:31:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-28 15:31:52 +0200 |
commit | 2a26dcbf9d957eb1c22a74a0f9b92bba07084dec (patch) | |
tree | 81370ae604952acf5ce0c6f58de34cdb48855e9d /src/auditor/taler-helper-auditor-transfer.c | |
parent | e506bdd1088e1c81597f97022567adfe3bd44563 (diff) |
clean up transaction logic in helpers, bump gnunet dependency
Diffstat (limited to 'src/auditor/taler-helper-auditor-transfer.c')
-rw-r--r-- | src/auditor/taler-helper-auditor-transfer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/auditor/taler-helper-auditor-transfer.c b/src/auditor/taler-helper-auditor-transfer.c index dd8cca566..f4cd4a088 100644 --- a/src/auditor/taler-helper-auditor-transfer.c +++ b/src/auditor/taler-helper-auditor-transfer.c @@ -294,10 +294,9 @@ begin_transaction (void) GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; } - TALER_ARL_edb->preflight (TALER_ARL_edb->cls); if (GNUNET_OK != - TALER_ARL_edb->start (TALER_ARL_edb->cls, - "transfer auditor")) + TALER_ARL_edb->start_read_only (TALER_ARL_edb->cls, + "transfer auditor")) { GNUNET_break (0); TALER_ARL_adb->rollback (TALER_ARL_adb->cls); @@ -347,9 +346,7 @@ begin_transaction (void) "Concluded audit step at %llu/%llu\n", (unsigned long long) TALER_ARL_USE_PP (wire_aggregation_id), (unsigned long long) TALER_ARL_USE_PP (wire_batch_deposit_id)); - qs = TALER_ARL_edb->commit (TALER_ARL_edb->cls); - if (0 > qs) - goto handle_db_error; + TALER_ARL_edb->rollback (TALER_ARL_edb->cls); qs = TALER_ARL_adb->commit (TALER_ARL_adb->cls); if (0 > qs) goto handle_db_error; |