diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-07-05 12:13:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-07-05 12:13:58 +0200 |
commit | ad612623be5facd4e89fcc9347217d6c7ab1778b (patch) | |
tree | 5b13a0beddd6eac0def43ff225943d322798cea2 /src/exchange/taler-exchange-httpd_responses.c | |
parent | 3ff92b9bbcf072d0b9840ad1c6af0a2bc1b1ef21 (diff) | |
download | exchange-ad612623be5facd4e89fcc9347217d6c7ab1778b.tar.gz exchange-ad612623be5facd4e89fcc9347217d6c7ab1778b.tar.bz2 exchange-ad612623be5facd4e89fcc9347217d6c7ab1778b.zip |
-run read-only transactions in proper read-only scope (at least some of them)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_responses.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_responses.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_responses.c b/src/exchange/taler-exchange-httpd_responses.c index bcdc14ece..2642f433a 100644 --- a/src/exchange/taler-exchange-httpd_responses.c +++ b/src/exchange/taler-exchange-httpd_responses.c @@ -568,10 +568,9 @@ TEH_RESPONSE_reply_coin_insufficient_funds ( json_t *history; TEH_plugin->rollback (TEH_plugin->cls); - // FIXME: maybe start read-only transaction here? if (GNUNET_OK != - TEH_plugin->start_read_committed (TEH_plugin->cls, - "get_coin_transactions")) + TEH_plugin->start_read_only (TEH_plugin->cls, + "get_coin_transactions")) { return TALER_MHD_reply_with_error ( connection, @@ -900,10 +899,9 @@ TEH_RESPONSE_reply_reserve_insufficient_balance ( enum GNUNET_DB_QueryStatus qs; MHD_RESULT mhd_ret; - // FIXME: maybe start read-committed here? if (GNUNET_OK != - TEH_plugin->start (TEH_plugin->cls, - "get_reserve_history on insufficient balance")) + TEH_plugin->start_read_only (TEH_plugin->cls, + "get_reserve_history on insufficient balance")) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, |