diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-08-10 19:12:57 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-08-10 19:12:57 +0200 |
commit | e0935af764099a203a44b03a98ef0ec8ee17aeeb (patch) | |
tree | a7744815361d10dbf9953c2946194de756a4fbe3 /src/exchange | |
parent | 9887077ea254163a873add1059b25144a7ddc32b (diff) | |
download | exchange-e0935af764099a203a44b03a98ef0ec8ee17aeeb.tar.gz exchange-e0935af764099a203a44b03a98ef0ec8ee17aeeb.tar.bz2 exchange-e0935af764099a203a44b03a98ef0ec8ee17aeeb.zip |
add a few more FOR UPDATE where appropriate
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_db.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c index 7817de990..1f7e0f257 100644 --- a/src/exchange/taler-exchange-httpd_db.c +++ b/src/exchange/taler-exchange-httpd_db.c @@ -30,7 +30,7 @@ * How often should we retry a transaction before giving up * (for transactions resulting in serialization/dead locks only). */ -#define MAX_TRANSACTION_COMMIT_RETRIES 3 +#define MAX_TRANSACTION_COMMIT_RETRIES 2 /** @@ -108,8 +108,9 @@ TEH_DB_run_transaction (struct MHD_Connection *connection, if (0 <= qs) return GNUNET_OK; } - TALER_LOG_WARNING ("Transaction commit failed %u times\n", - MAX_TRANSACTION_COMMIT_RETRIES); + TALER_LOG_ERROR ("Transaction `%s' commit failed %u times\n", + name, + MAX_TRANSACTION_COMMIT_RETRIES); if (NULL != mhd_ret) *mhd_ret = TEH_RESPONSE_reply_commit_error (connection, TALER_EC_DB_COMMIT_FAILED_ON_RETRY); |