projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201253c
)
fix return value
author
Christian Grothoff
<christian@grothoff.org>
Mon, 24 Feb 2020 17:33:03 +0000
(18:33 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 24 Feb 2020 17:33:03 +0000
(18:33 +0100)
src/pq/pq_connect.c
patch
|
blob
|
history
diff --git
a/src/pq/pq_connect.c
b/src/pq/pq_connect.c
index a5a7f0682ac04f3db12b9241d17b4853e2d673f8..2f017474bf1428b49e959c17390b1f16a7d7073d 100644
(file)
--- 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;