summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-22 15:47:24 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-22 15:47:24 +0200
commit23e084718897f948d9256b898fc3a2a6ff582341 (patch)
tree7a06f35ad3138c5ddfd90e71c35a5b60c48021a1 /src/exchangedb
parent95f0fdf36988327c8377bb891c5bf726defc387e (diff)
downloadexchange-23e084718897f948d9256b898fc3a2a6ff582341.tar.gz
exchange-23e084718897f948d9256b898fc3a2a6ff582341.tar.bz2
exchange-23e084718897f948d9256b898fc3a2a6ff582341.zip
-fix #6933
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 7a91a348d..d0330d784 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -243,7 +243,8 @@ postgres_get_session (void *cls)
session = pthread_getspecific (pc->db_conn_threadlocal);
if (NULL != session)
{
- GNUNET_PQ_reconnect_if_down (session->conn);
+ if (NULL == session->transaction_name)
+ GNUNET_PQ_reconnect_if_down (session->conn);
return session;
}
{