diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-23 17:14:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-23 17:14:19 +0200 |
commit | f0caeb608b657700c46219aa9aa23959a4b303ae (patch) | |
tree | 048a8bc5386a1b8b6f385ffc4b011575c1afe970 | |
parent | 590bb2c6d181bd703ff4b1c528662898f28eab79 (diff) | |
download | merchant-f0caeb608b657700c46219aa9aa23959a4b303ae.tar.gz merchant-f0caeb608b657700c46219aa9aa23959a4b303ae.tar.bz2 merchant-f0caeb608b657700c46219aa9aa23959a4b303ae.zip |
insert missing rollbacks
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-transfers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-transfers.c b/src/backend/taler-merchant-httpd_private-post-transfers.c index 5ac4ec9d..0e3f798e 100644 --- a/src/backend/taler-merchant-httpd_private-post-transfers.c +++ b/src/backend/taler-merchant-httpd_private-post-transfers.c @@ -1225,6 +1225,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh, &wire_fee)) { GNUNET_break (0); + TMH_db->rollback (TMH_db->cls); return TALER_MHD_reply_with_error ( connection, MHD_HTTP_INTERNAL_SERVER_ERROR, @@ -1238,6 +1239,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Amount of expected was %s\n", TALER_amount2s (&delta)); + TMH_db->rollback (TMH_db->cls); return TALER_MHD_reply_with_error ( connection, MHD_HTTP_CONFLICT, @@ -1254,6 +1256,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh, GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Amount submitted was %s\n", TALER_amount2s (&ptc->amount)); + TMH_db->rollback (TMH_db->cls); return TALER_MHD_reply_with_error ( connection, MHD_HTTP_CONFLICT, @@ -1357,6 +1360,7 @@ TMH_private_post_transfers (const struct TMH_RequestHandler *rh, "deposit_sums", deposit_sums); } /* end of 'verified == true' (not an 'if'!) */ } /* end of 'switch (qs)' */ + GNUNET_assert (0); } /* end of 'for(retries...) */ return TALER_MHD_reply_with_error (connection, MHD_HTTP_INTERNAL_SERVER_ERROR, |