aboutsummaryrefslogtreecommitdiff
path: root/src/auditor/report-lib.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-24 22:46:14 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-24 22:46:14 +0200
commite9377fd4dab194794f93216366c0e13b97e49714 (patch)
tree83aae3b46aa74883355a8621407c28019394c68a /src/auditor/report-lib.c
parent879ec0417203dd044a351345f4e7843fef63219b (diff)
improve error handling of reserves auditor
Diffstat (limited to 'src/auditor/report-lib.c')
-rw-r--r--src/auditor/report-lib.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c
index ad7b3d6f3..2bbdf569d 100644
--- a/src/auditor/report-lib.c
+++ b/src/auditor/report-lib.c
@@ -305,6 +305,8 @@ enum GNUNET_GenericReturnValue
TALER_ARL_setup_sessions_and_run (TALER_ARL_Analysis ana,
void *ana_cls)
{
+ enum GNUNET_DB_QueryStatus qs;
+
if (GNUNET_SYSERR ==
TALER_ARL_edb->preflight (TALER_ARL_edb->cls))
{
@@ -320,8 +322,14 @@ TALER_ARL_setup_sessions_and_run (TALER_ARL_Analysis ana,
return GNUNET_SYSERR;
}
- if (0 > transact (ana,
- ana_cls))
+ for (unsigned int retries=0; retries<3; retries++)
+ {
+ qs = transact (ana,
+ ana_cls);
+ if (GNUNET_DB_STATUS_SOFT_ERROR != qs)
+ break;
+ }
+ if (qs < 0)
return GNUNET_SYSERR;
return GNUNET_OK;
}