summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-14 14:23:16 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-14 14:23:16 +0100
commita98825675b37988c059576b5bfd98bac173bdc25 (patch)
tree8e7e392fdfc688af5a1066c728f6ef7807e1846a /src/auditor
parente56ed85f4f11f3daec80326f7d43635281b3806b (diff)
downloadexchange-a98825675b37988c059576b5bfd98bac173bdc25.tar.gz
exchange-a98825675b37988c059576b5bfd98bac173bdc25.tar.bz2
exchange-a98825675b37988c059576b5bfd98bac173bdc25.zip
add option to be selective about dropping the exchange list
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor-dbinit.c3
-rw-r--r--src/auditor/taler-auditor.c7
-rw-r--r--src/auditor/taler-wire-auditor.c3
3 files changed, 8 insertions, 5 deletions
diff --git a/src/auditor/taler-auditor-dbinit.c b/src/auditor/taler-auditor-dbinit.c
index 185a39413..5031ed9f5 100644
--- a/src/auditor/taler-auditor-dbinit.c
+++ b/src/auditor/taler-auditor-dbinit.c
@@ -64,7 +64,8 @@ run (void *cls,
return;
}
if (reset_db)
- (void) plugin->drop_tables (plugin->cls);
+ (void) plugin->drop_tables (plugin->cls,
+ GNUNET_YES);
if (GNUNET_OK !=
plugin->create_tables (plugin->cls))
{
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index dced807b1..d3afbb3d1 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -2489,7 +2489,7 @@ get_wire_fee (struct AggregationContext *ac,
* @return #GNUNET_OK to continue, #GNUNET_SYSERR to stop iteration
*/
static int
-check_wire_out_cb
+check_wire_out_cb
(void *cls,
uint64_t rowid,
struct GNUNET_TIME_Absolute date,
@@ -4391,7 +4391,7 @@ test_master_present (void *cls,
const char *exchange_url)
{
int *found = cls;
-
+
(void) exchange_url;
if (0 == memcmp (mpub,
&master_pub,
@@ -4529,7 +4529,8 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Full audit restart requested, dropping old audit data.\n");
GNUNET_break (GNUNET_OK ==
- adb->drop_tables (adb->cls));
+ adb->drop_tables (adb->cls,
+ GNUNET_NO));
TALER_AUDITORDB_plugin_unload (adb);
if (NULL ==
(adb = TALER_AUDITORDB_plugin_load (cfg)))
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c
index 6e66ea99c..c903a4943 100644
--- a/src/auditor/taler-wire-auditor.c
+++ b/src/auditor/taler-wire-auditor.c
@@ -1605,7 +1605,8 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"Full audit restart requested, dropping old audit data.\n");
GNUNET_break (GNUNET_OK ==
- adb->drop_tables (adb->cls));
+ adb->drop_tables (adb->cls,
+ GNUNET_NO));
TALER_AUDITORDB_plugin_unload (adb);
if (NULL ==
(adb = TALER_AUDITORDB_plugin_load (cfg)))