gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] branch master updated: -expand fix


From: gnunet
Subject: [taler-merchant] branch master updated: -expand fix
Date: Wed, 21 Jul 2021 16:24:09 +0200

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new c2f515e4 -expand fix
c2f515e4 is described below

commit c2f515e414a67407bb09c30a16007d15dcd8d860
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jul 21 16:24:07 2021 +0200

    -expand fix
---
 src/backenddb/plugin_merchantdb_postgres.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c 
b/src/backenddb/plugin_merchantdb_postgres.c
index 5668d7f1..ee7acf1f 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1372,9 +1372,9 @@ struct LookupOrdersContext
   void *cb_cls;
 
   /**
-   * Internal result.
+   * Did database result extraction fail?
    */
-  enum GNUNET_DB_QueryStatus qs;
+  bool extract_failed;
 };
 
 
@@ -1414,7 +1414,7 @@ lookup_orders_cb (void *cls,
                                   i))
     {
       GNUNET_break (0);
-      plc->qs = GNUNET_DB_STATUS_HARD_ERROR;
+      plc->extract_failed = true;
       return;
     }
     plc->cb (plc->cb_cls,
@@ -1484,8 +1484,8 @@ postgres_lookup_orders (void *cls,
                                              params,
                                              &lookup_orders_cb,
                                              &plc);
-  if (0 != plc.qs)
-    return plc.qs;
+  if (plc.extract_failed)
+    return GNUNET_DB_STATUS_HARD_ERROR;
   return qs;
 }
 

-- 
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]