gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: fix retry counter logic


From: gnunet
Subject: [taler-anastasis] branch master updated: fix retry counter logic
Date: Sun, 04 Apr 2021 16:05:50 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new b7646a9  fix retry counter logic
b7646a9 is described below

commit b7646a91b10ca2e96d63de70b015101413866a4c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Apr 4 16:05:48 2021 +0200

    fix retry counter logic
---
 src/backend/anastasis-httpd_truth.c    | 2 +-
 src/stasis/plugin_anastasis_postgres.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index 41d49ac..0e8aa21 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -960,7 +960,7 @@ AH_handler_truth_get (
                                       &gc->truth_uuid,
                                       MAX_QUESTION_FREQ,
                                       GNUNET_TIME_UNIT_HOURS,
-                                      UINT32_MAX,
+                                      INITIAL_RETRY_COUNTER,
                                       &rt,
                                       &code);
       if (0 > qs)
diff --git a/src/stasis/plugin_anastasis_postgres.c 
b/src/stasis/plugin_anastasis_postgres.c
index 725e7fd..772572b 100644
--- a/src/stasis/plugin_anastasis_postgres.c
+++ b/src/stasis/plugin_anastasis_postgres.c
@@ -1600,7 +1600,7 @@ postgres_create_challenge_code (
     }
 
     {
-      uint32_t retry_counter;
+      uint32_t old_retry_counter;
       struct GNUNET_PQ_QueryParam params[] = {
         GNUNET_PQ_query_param_auto_from_type (truth_uuid),
         TALER_PQ_query_param_absolute_time (&now),
@@ -1611,7 +1611,7 @@ postgres_create_challenge_code (
         GNUNET_PQ_result_spec_uint64 ("code",
                                       code),
         GNUNET_PQ_result_spec_uint32 ("retry_counter",
-                                      &retry_counter),
+                                      &old_retry_counter),
         GNUNET_PQ_result_spec_absolute_time ("retransmission_date",
                                              retransmission_date),
         GNUNET_PQ_result_spec_end
@@ -1634,7 +1634,7 @@ postgres_create_challenge_code (
         /* no active challenge, create fresh one (below) */
         break;
       case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
-        if (0 == retry_counter)
+        if (0 == old_retry_counter)
         {
           rollback (pg);
           return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]