gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: fix return value


From: gnunet
Subject: [gnunet] branch master updated: fix return value
Date: Mon, 24 Feb 2020 18:37:04 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 4dc1dfc42 fix return value
4dc1dfc42 is described below

commit 4dc1dfc420503d432f7b3b7b50286e806e6f8b86
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Feb 24 18:33:03 2020 +0100

    fix return value
---
 src/pq/pq_connect.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pq/pq_connect.c b/src/pq/pq_connect.c
index a5a7f0682..2f017474b 100644
--- a/src/pq/pq_connect.c
+++ b/src/pq/pq_connect.c
@@ -236,7 +236,7 @@ GNUNET_PQ_run_sql (struct GNUNET_PQ_Context *db,
                        i);
       if (GNUNET_YES !=
           GNUNET_DISK_file_test (buf))
-        return GNUNET_NO;   /* We are done */
+        return GNUNET_OK;   /* We are done */
     }
 
     /* Second, check with DB versioning schema if this patch was already 
applied,
@@ -409,10 +409,13 @@ GNUNET_PQ_reconnect (struct GNUNET_PQ_Context *db)
     }
     PQclear (res);
 
-    if (GNUNET_OK !=
+    if (GNUNET_SYSERR ==
         GNUNET_PQ_run_sql (db,
                            db->load_path))
     {
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "Failed to load SQL statements from `%s'\n",
+                  db->load_path);
       PQfinish (db->conn);
       db->conn = NULL;
       return;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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