From 0df2028f96f5977739d4659bf253e0c6d9468326 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Aug 2018 16:01:57 +0200 Subject: make transactions smaller to try to reduce rollbacks --- src/include/taler_exchangedb_plugin.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 6e5947377..b06bc7409 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1397,6 +1397,20 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_EXCHANGEDB_ReserveHistory *rh); + /** + * Make sure the given @a coin is known to the database. + * + * @param cls database connection plugin state + * @param session database session + * @param coin the coin that must be made known + * @return database transaction status, non-negative on success + */ + enum GNUNET_DB_QueryStatus + (*ensure_coin_known) (void *cls, + struct TALER_EXCHANGEDB_Session *session, + const struct TALER_CoinPublicInfo *coin); + + /** * Check if we have the specified deposit already in the database. * -- cgit v1.2.3