diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-23 16:39:21 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-09-23 16:39:21 +0900 |
commit | e0e36b6feba6cbcbbb3516d3a9de4d6fd0199825 (patch) | |
tree | 77429f5da157e6c002cdb0d31dfb44da0cc48123 /src/pq | |
parent | 7678d77b1cb0dcfd8887016d35b27fbedb136050 (diff) | |
download | gnunet-e0e36b6feba6cbcbbb3516d3a9de4d6fd0199825.tar.gz gnunet-e0e36b6feba6cbcbbb3516d3a9de4d6fd0199825.zip |
NAMESTORE: Towards proper transactional locks
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq.c | 4 | ||||
-rw-r--r-- | src/pq/pq_exec.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c index 130ff355f..c8deb8193 100644 --- a/src/pq/pq.c +++ b/src/pq/pq.c | |||
@@ -97,9 +97,9 @@ GNUNET_PQ_exec_prepared (struct GNUNET_PQ_Context *db, | |||
97 | 1); | 97 | 1); |
98 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 98 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, |
99 | "pq", | 99 | "pq", |
100 | "Execution of prepared SQL statement `%s' finished (%d)\n", | 100 | "Execution of prepared SQL statement `%s' finished (%s)\n", |
101 | name, | 101 | name, |
102 | PGRES_COMMAND_OK == PQresultStatus (res)); | 102 | PQresStatus (PQresultStatus (res))); |
103 | if ( (PGRES_COMMAND_OK != PQresultStatus (res)) && | 103 | if ( (PGRES_COMMAND_OK != PQresultStatus (res)) && |
104 | (CONNECTION_OK != (status = PQstatus (db->conn))) ) | 104 | (CONNECTION_OK != (status = PQstatus (db->conn))) ) |
105 | { | 105 | { |
diff --git a/src/pq/pq_exec.c b/src/pq/pq_exec.c index dcde331b6..62dd577ad 100644 --- a/src/pq/pq_exec.c +++ b/src/pq/pq_exec.c | |||
@@ -87,10 +87,10 @@ GNUNET_PQ_exec_statements (struct GNUNET_PQ_Context *db, | |||
87 | result = PQexec (db->conn, | 87 | result = PQexec (db->conn, |
88 | es[i].sql); | 88 | es[i].sql); |
89 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 89 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
90 | "Running statement `%s' on %p finished (%d)\n", | 90 | "Running statement `%s' on %p finished (%s)\n", |
91 | es[i].sql, | 91 | es[i].sql, |
92 | db, | 92 | db, |
93 | PGRES_COMMAND_OK == PQresultStatus (result)); | 93 | PQresStatus (PQresultStatus (result))); |
94 | if ((GNUNET_NO == es[i].ignore_errors) && | 94 | if ((GNUNET_NO == es[i].ignore_errors) && |
95 | (PGRES_COMMAND_OK != PQresultStatus (result))) | 95 | (PGRES_COMMAND_OK != PQresultStatus (result))) |
96 | { | 96 | { |