diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-23 08:24:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-23 08:24:59 +0200 |
commit | 01e06eb715938b914c54123c21c7c7678e08ee02 (patch) | |
tree | 85d8053916faa7bfddb711023d8c7959cb83aa5f /src/auditor/taler-auditor-exchange.c | |
parent | 82a5038acf5302957ca450d9c262f6fed59a45ba (diff) | |
download | exchange-01e06eb715938b914c54123c21c7c7678e08ee02.tar.xz |
-remove sessions also from auditor
Diffstat (limited to 'src/auditor/taler-auditor-exchange.c')
-rw-r--r-- | src/auditor/taler-auditor-exchange.c | 11 |
1 files changed, 4 insertions, 7 deletions
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); } |