exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a2604f7967d592ef0a9cce9bd9c73c83418f0adc
parent a13f90a15ee910c0ada316366e197de11bc6cc62
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 15 Apr 2022 11:18:33 +0200

-style fix

Diffstat:
Msrc/exchange/taler-exchange-httpd_db.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c @@ -123,10 +123,12 @@ TEH_DB_run_transaction (struct MHD_Connection *connection, connection, mhd_ret); if (0 > qs) + { TEH_plugin->rollback (TEH_plugin->cls); - if (GNUNET_DB_STATUS_HARD_ERROR == qs) - return GNUNET_SYSERR; - if (0 <= qs) + if (GNUNET_DB_STATUS_HARD_ERROR == qs) + return GNUNET_SYSERR; + } + else { qs = TEH_plugin->commit (TEH_plugin->cls); if (GNUNET_DB_STATUS_HARD_ERROR == qs)