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-exchange.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/auditor/taler-auditor-exchange.c') diff --git a/src/auditor/taler-auditor-exchange.c b/src/auditor/taler-auditor-exchange.c index b751ea9a4..04181ce3f 100644 --- a/src/auditor/taler-auditor-exchange.c +++ b/src/auditor/taler-auditor-exchange.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015, 2018, 2019 Taler Systems SA + Copyright (C) 2014-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -176,13 +176,12 @@ main (int argc, /* Update DB */ { enum GNUNET_DB_QueryStatus qs; - struct TALER_AUDITORDB_Session *session; - session = adb->get_session (adb->cls); - if (NULL == session) + if (GNUNET_SYSERR == + adb->preflight (adb->cls)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Failed to initialize database session\n"); + "Failed to initialize database connection\n"); TALER_AUDITORDB_plugin_unload (adb); return EXIT_FAILURE; } @@ -190,13 +189,11 @@ main (int argc, if (remove_flag) { qs = adb->delete_exchange (adb->cls, - session, &master_public_key); } else { qs = adb->insert_exchange (adb->cls, - session, &master_public_key, exchange_url); } -- cgit v1.2.3