diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-15 11:18:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-15 11:18:33 +0200 |
commit | a2604f7967d592ef0a9cce9bd9c73c83418f0adc (patch) | |
tree | da32f64b61582c732c110a90b1732b6f16cbfeb8 | |
parent | a13f90a15ee910c0ada316366e197de11bc6cc62 (diff) | |
download | exchange-a2604f7967d592ef0a9cce9bd9c73c83418f0adc.tar.xz |
-style fix
-rw-r--r-- | src/exchange/taler-exchange-httpd_db.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index f736a508e..53b935ba4 100644 --- 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) |