diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-31 11:09:19 +0200 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-05-31 11:09:19 +0200 |
commit | c2c85d0004e654a4fc41002161bd2a19f8e7f606 (patch) | |
tree | b6ee9ec9233122c7e7107f0147451b0022b77f03 /src/exchangedb/plugin_exchangedb_postgres.c | |
parent | bfd3ce29d166c8a72331a7c970a95022330b45e2 (diff) | |
parent | 0cef479e00a89a6649c747f91aba5208affd30e0 (diff) | |
download | exchange-c2c85d0004e654a4fc41002161bd2a19f8e7f606.tar.xz |
Merge branch 'master' of ssh://taler.net/var/git/exchange
Conflicts:
src/benchmark/taler-exchange-benchmark
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); |