commit 3447073219bf35010a39ac1089734a4e348f805e
parent 7b99f77091ea2a5b74b12777ef78f6b7b6f25dae
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 13 Jul 2026 00:28:35 +0200
fail if reset failed
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c
@@ -73,8 +73,11 @@ run (void *cls,
if (GNUNET_OK !=
TALER_MERCHANTDB_drop_tables (pg))
{
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ global_ret = 1;
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to reset the database\n");
+ TALER_MERCHANTDB_disconnect (pg);
+ return;
}
}
if (gc_db)
@@ -96,6 +99,7 @@ run (void *cls,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to initialize tables\n");
}
+ TALER_MERCHANTDB_disconnect (pg);
}