From 01e06eb715938b914c54123c21c7c7678e08ee02 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Aug 2021 08:24:59 +0200 Subject: -remove sessions also from auditor --- src/auditor/taler-auditor-httpd_deposit-confirmation.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation.c') diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index f38e8ee71..c7a23d718 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -62,7 +62,6 @@ verify_and_execute_deposit_confirmation ( const struct TALER_AUDITORDB_DepositConfirmation *dc, const struct TALER_AUDITORDB_ExchangeSigningKey *es) { - struct TALER_AUDITORDB_Session *session; enum GNUNET_DB_QueryStatus qs; struct GNUNET_TIME_Absolute now; struct GNUNET_HashCode h; @@ -96,8 +95,8 @@ verify_and_execute_deposit_confirmation ( cached = GNUNET_CONTAINER_multihashmap_get (cache, &h); GNUNET_assert (0 == pthread_mutex_unlock (&lock)); - session = TAH_plugin->get_session (TAH_plugin->cls); - if (NULL == session) + if (GNUNET_SYSERR == + TAH_plugin->preflight (TAH_plugin->cls)) { GNUNET_break (0); return TALER_MHD_reply_with_error (connection, @@ -126,7 +125,6 @@ verify_and_execute_deposit_confirmation ( /* execute transaction */ qs = TAH_plugin->insert_exchange_signkey (TAH_plugin->cls, - session, es); if (0 > qs) { @@ -216,7 +214,6 @@ verify_and_execute_deposit_confirmation ( /* execute transaction */ qs = TAH_plugin->insert_deposit_confirmation (TAH_plugin->cls, - session, dc); if (0 > qs) { -- cgit v1.2.3