summaryrefslogtreecommitdiff
path: root/src/backenddb/plugin_merchantdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-27 19:53:04 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-27 19:53:04 +0200
commit16a14fc2b1885129144c003c163551e0dbd7d43d (patch)
tree600b2140e389a99bae81b7d1a7c03f3b952c260c /src/backenddb/plugin_merchantdb_postgres.c
parent1bfaf0a19f664c313e887cc25cfb80891cd66d3a (diff)
downloadmerchant-16a14fc2b1885129144c003c163551e0dbd7d43d.tar.gz
merchant-16a14fc2b1885129144c003c163551e0dbd7d43d.tar.bz2
merchant-16a14fc2b1885129144c003c163551e0dbd7d43d.zip
fix #7846, including adding test
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 3dbdae48..35d6f111 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -208,14 +208,7 @@ postgres_event_notify (void *cls,
}
-/**
- * Do a pre-flight check that we are not in an uncommitted transaction.
- * If we are, die.
- * Does not return anything, as we will continue regardless of the outcome.
- *
- * @param cls the `struct PostgresClosure` with the plugin-specific state
- */
-static void
+void
postgres_preflight (void *cls)
{
struct PostgresClosure *pg = cls;
@@ -2377,7 +2370,7 @@ RETRY:
GNUNET_PQ_query_param_auto_from_type (reserve_pub),
GNUNET_PQ_query_param_auto_from_type (reserve_priv),
GNUNET_PQ_query_param_string (exchange_url),
- GNUNET_PQ_query_param_auto_from_type (reserve_pub),
+ GNUNET_PQ_query_param_auto_from_type (master_pub),
GNUNET_PQ_query_param_end
};