summaryrefslogtreecommitdiff
path: root/src/auditor/report-lib.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-21 16:09:22 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-21 16:09:22 +0100
commit88fd81e5da88fe11746ed7c06ba283891e05b673 (patch)
tree0816f19307abcf815e67763d8d461ca84819e016 /src/auditor/report-lib.c
parenta8b8258e12f8e04936bffd82a2e31be7117ec860 (diff)
downloadexchange-88fd81e5da88fe11746ed7c06ba283891e05b673.tar.gz
exchange-88fd81e5da88fe11746ed7c06ba283891e05b673.tar.bz2
exchange-88fd81e5da88fe11746ed7c06ba283891e05b673.zip
completing auditor split
Diffstat (limited to 'src/auditor/report-lib.c')
-rw-r--r--src/auditor/report-lib.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c
index 128ec6256..d6db597ec 100644
--- a/src/auditor/report-lib.c
+++ b/src/auditor/report-lib.c
@@ -22,11 +22,6 @@
#include "report-lib.h"
/**
- * Command-line option "-r": TALER_ARL_restart audit from scratch
- */
-int TALER_ARL_restart;
-
-/**
* Handle to access the exchange's database.
*/
struct TALER_EXCHANGEDB_Plugin *TALER_ARL_edb;
@@ -518,26 +513,6 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c)
TALER_EXCHANGEDB_plugin_unload (TALER_ARL_edb);
return GNUNET_SYSERR;
}
- if (TALER_ARL_restart)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Full audit TALER_ARL_restart requested, dropping old audit data.\n");
- GNUNET_break (GNUNET_OK ==
- TALER_ARL_adb->drop_tables (TALER_ARL_adb->cls,
- GNUNET_NO));
- TALER_AUDITORDB_plugin_unload (TALER_ARL_adb);
- if (NULL ==
- (TALER_ARL_adb = TALER_AUDITORDB_plugin_load (TALER_ARL_cfg)))
- {
- fprintf (stderr,
- "Failed to initialize auditor database plugin after drop.\n");
- TALER_EXCHANGEDB_plugin_unload (TALER_ARL_edb);
- return GNUNET_SYSERR;
- }
- GNUNET_break (GNUNET_OK ==
- TALER_ARL_adb->create_tables (TALER_ARL_adb->cls));
- }
-
return GNUNET_OK;
}