diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-31 10:39:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-31 10:39:11 +0200 |
commit | 0cef479e00a89a6649c747f91aba5208affd30e0 (patch) | |
tree | 42604fabefa4dca697c5b5d77ab0538c080c6499 /src/exchangedb/plugin_exchangedb_postgres.c | |
parent | eb1fdc105cf2ea0afe3922e06b614622294d017f (diff) | |
download | exchange-0cef479e00a89a6649c747f91aba5208affd30e0.tar.xz |
extend test to cover GC
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |