From 0cef479e00a89a6649c747f91aba5208affd30e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 May 2016 10:39:11 +0200 Subject: extend test to cover GC --- src/exchangedb/plugin_exchangedb_postgres.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 72f85e7bb..5fbaa26b3 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -4298,6 +4298,12 @@ postgres_gc (void *cls) conn = connect_to_postgres (pc); if (NULL == conn) return GNUNET_SYSERR; + if (GNUNET_OK != + postgres_prepare (conn)) + { + PQfinish (conn); + return GNUNET_SYSERR; + } result = GNUNET_PQ_exec_prepared (conn, "gc_prewire", params_none); -- cgit v1.2.3