commit 12fae6e17385a9b69115dd97844f7d90d4dbf2c9
parent 2517beb3395dae071432dd632112004cdae54d65
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 2 Aug 2026 21:57:43 +0200
make sure --reset and --gc play along
Diffstat:
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c
@@ -79,6 +79,14 @@ run (void *cls,
TALER_MERCHANTDB_disconnect (pg);
return;
}
+ gc_db = 0; /* not useful */
+ }
+ if (GNUNET_OK !=
+ TALER_MERCHANTDB_create_tables (pg))
+ {
+ global_ret = 1;
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to initialize tables\n");
}
if (gc_db)
{
@@ -92,13 +100,6 @@ run (void *cls,
TALER_MERCHANTDB_disconnect (pg);
return;
}
- if (GNUNET_OK !=
- TALER_MERCHANTDB_create_tables (pg))
- {
- global_ret = 1;
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Failed to initialize tables\n");
- }
TALER_MERCHANTDB_disconnect (pg);
}