summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-11 01:59:09 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-11 01:59:09 +0200
commitcad64767d9fda2c18106f25ef101c2eb5fce15a1 (patch)
treeba6a1e014ffc37b8e61c4b8ae3337427e5357201 /src/exchange/taler-exchange-httpd_db.c
parent780b7166527f9dc3b07caeadaa4244b7ac5898bb (diff)
downloadexchange-cad64767d9fda2c18106f25ef101c2eb5fce15a1.tar.gz
exchange-cad64767d9fda2c18106f25ef101c2eb5fce15a1.tar.bz2
exchange-cad64767d9fda2c18106f25ef101c2eb5fce15a1.zip
match GNUnet API rename, work on #5010
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index 51e1ef50e..71f82e9d5 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -46,7 +46,7 @@
#define START_TRANSACTION(session,connection) \
{ /* start new scope, will be ended by COMMIT_TRANSACTION() */\
unsigned int transaction_retries = 0; \
- int transaction_commit_result; \
+ enum GNUNET_DB_QueryStatus transaction_commit_result; \
transaction_start_label: /* we will use goto for retries */ \
if (GNUNET_OK != \
TEH_plugin->start (TEH_plugin->cls, \
@@ -71,13 +71,13 @@ transaction_start_label: /* we will use goto for retries */ \
transaction_commit_result = \
TEH_plugin->commit (TEH_plugin->cls, \
session); \
- if (GNUNET_SYSERR == transaction_commit_result) \
+ if (GNUNET_DB_STATUS_HARD_ERROR == transaction_commit_result) \
{ \
TALER_LOG_WARNING ("Transaction commit failed in %s\n", __FUNCTION__); \
return TEH_RESPONSE_reply_commit_error (connection, \
TALER_EC_DB_COMMIT_FAILED_HARD); \
} \
- if (GNUNET_NO == transaction_commit_result) \
+ if (GNUNET_DB_STATUS_SOFT_ERROR == transaction_commit_result) \
{ \
TALER_LOG_WARNING ("Transaction commit failed in %s\n", __FUNCTION__); \
if (transaction_retries++ <= MAX_TRANSACTION_COMMIT_RETRIES) \