From a166ca7fece8bbe3c66dcf0217cc81d20d185ab0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 12 Mar 2018 11:33:10 +0100 Subject: fix #5281 for exchange: do preflight check that an old transaction is no longer running by accident --- src/exchange/taler-exchange-httpd_db.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/exchange/taler-exchange-httpd_db.h') diff --git a/src/exchange/taler-exchange-httpd_db.h b/src/exchange/taler-exchange-httpd_db.h index 7e342c842..2a42bcd85 100644 --- a/src/exchange/taler-exchange-httpd_db.h +++ b/src/exchange/taler-exchange-httpd_db.h @@ -52,8 +52,9 @@ typedef enum GNUNET_DB_QueryStatus * attempts to commit the transaction. Upon soft failures, * retries @a cb a few times. Upon hard or persistent soft * errors, generates an error message for @a connection. - * + * * @param connection MHD connection to run @a cb for + * @param name name of the transaction (for debugging) * @param[out] set to MHD response code, if transaction failed * @param cb callback implementing transaction logic * @param cb_cls closure for @a cb, must be read-only! @@ -61,6 +62,7 @@ typedef enum GNUNET_DB_QueryStatus */ int TEH_DB_run_transaction (struct MHD_Connection *connection, + const char *name, int *mhd_ret, TEH_DB_TransactionCallback cb, void *cb_cls); -- cgit v1.2.3