exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 06543ae432d5bb3871790ae3a23fc2a802e764a9
parent 80a430f7045ad68f6c344e917037764b25c0b14b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 12 Oct 2026 17:18:18 +0200

more consistent exit return codes, allow restart on DB failure

Diffstat:
Msrc/exchange/taler-exchange-sanctionscheck.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-sanctionscheck.c b/src/exchange/taler-exchange-sanctionscheck.c @@ -415,7 +415,9 @@ sanction_cb (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to commit DB transaction\n"); - global_ret = EXIT_NOTCONFIGURED; + /* Transient (e.g. serialization failure): let the supervisor + restart us; EXIT_NOTCONFIGURED would prevent that. */ + global_ret = EXIT_FAILURE; GNUNET_SCHEDULER_shutdown (); return; } @@ -594,7 +596,7 @@ begin_transaction () { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to begin DB transaction\n"); - global_ret = EXIT_NOTCONFIGURED; + global_ret = EXIT_FAILURE; GNUNET_SCHEDULER_shutdown (); return; } @@ -747,7 +749,7 @@ run (void *cls, { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to initialize DB subsystem\n"); - global_ret = EXIT_NOTCONFIGURED; + global_ret = EXIT_FAILURE; return; } GNUNET_SCHEDULER_add_shutdown (&shutdown_task,