diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-05 21:26:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-05 21:26:27 +0200 |
commit | 2f0015b80385364ffbacca71504a96a46db6f0e0 (patch) | |
tree | 251b2f5a0329c668fd75fda2ad367c29c2316dc1 /src/exchange/taler-exchange-httpd_reserve_withdraw.c | |
parent | 466a7b7018c0a53a27e1d431019f6b5f7b3562e4 (diff) | |
download | exchange-2f0015b80385364ffbacca71504a96a46db6f0e0.tar.gz exchange-2f0015b80385364ffbacca71504a96a46db6f0e0.tar.bz2 exchange-2f0015b80385364ffbacca71504a96a46db6f0e0.zip |
add locking to avoid transaction retries
Diffstat (limited to 'src/exchange/taler-exchange-httpd_reserve_withdraw.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserve_withdraw.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c b/src/exchange/taler-exchange-httpd_reserve_withdraw.c index c988cde68..32d53980d 100644 --- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c +++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c @@ -59,7 +59,7 @@ reply_reserve_withdraw_insufficient_funds (struct MHD_Connection *connection, struct TALER_Amount balance; json_history = TEH_RESPONSE_compile_reserve_history (rh, - &balance); + &balance); if ((NULL == json_history) /* Address the case where the ptr is not null, but * it fails "internally" to dump as string (= corrupted). */ @@ -180,9 +180,9 @@ struct WithdrawContext */ static enum GNUNET_DB_QueryStatus withdraw_transaction (void *cls, - struct MHD_Connection *connection, - struct TALER_EXCHANGEDB_Session *session, - int *mhd_ret) + struct MHD_Connection *connection, + struct TALER_EXCHANGEDB_Session *session, + int *mhd_ret) { struct WithdrawContext *wc = cls; struct TALER_EXCHANGEDB_Reserve r; @@ -197,9 +197,9 @@ withdraw_transaction (void *cls, wc->collectable.sig.rsa_signature = NULL; #endif qs = TEH_plugin->get_withdraw_info (TEH_plugin->cls, - session, - &wc->wsrd.h_coin_envelope, - &wc->collectable); + session, + &wc->wsrd.h_coin_envelope, + &wc->collectable); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); |