summaryrefslogtreecommitdiff
path: root/src/merchant-tools/taler-merchant-dbinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/merchant-tools/taler-merchant-dbinit.c')
-rw-r--r--src/merchant-tools/taler-merchant-dbinit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c
index d5f2da6b..938f7d30 100644
--- a/src/merchant-tools/taler-merchant-dbinit.c
+++ b/src/merchant-tools/taler-merchant-dbinit.c
@@ -54,7 +54,8 @@ run (void *cls,
cfg = GNUNET_CONFIGURATION_dup (config);
if (NULL ==
- (plugin = TALER_MERCHANTDB_plugin_load (cfg)))
+ (plugin = TALER_MERCHANTDB_plugin_load (cfg,
+ reset_db)))
{
fprintf (stderr,
"Failed to initialize database plugin.\n");
@@ -62,12 +63,6 @@ run (void *cls,
GNUNET_CONFIGURATION_destroy (cfg);
return;
}
- if (reset_db)
- {
- (void) plugin->drop_tables (plugin->cls);
- TALER_MERCHANTDB_plugin_unload (plugin);
- plugin = TALER_MERCHANTDB_plugin_load (cfg);
- }
TALER_MERCHANTDB_plugin_unload (plugin);
GNUNET_CONFIGURATION_destroy (cfg);
}