diff options
Diffstat (limited to 'src/merchant-tools/taler-merchant-dbinit.c')
-rw-r--r-- | src/merchant-tools/taler-merchant-dbinit.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c index 2da6cd50..b5e85ee6 100644 --- a/src/merchant-tools/taler-merchant-dbinit.c +++ b/src/merchant-tools/taler-merchant-dbinit.c @@ -60,17 +60,11 @@ run (void *cls, return; } if (reset_db) - (void) plugin->drop_tables (plugin->cls); - if (GNUNET_OK != - plugin->initialize (plugin->cls)) { - fprintf (stderr, - "Failed to initialize database.\n"); + (void) plugin->drop_tables (plugin->cls); TALER_MERCHANTDB_plugin_unload (plugin); - global_ret = 1; - return; + plugin = TALER_MERCHANTDB_plugin_load (cfg); } - TALER_MERCHANTDB_plugin_unload (plugin); } |