diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-27 21:18:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-27 21:18:12 +0100 |
commit | 787c56e7e95744852594fc6ad08ae9368b79723a (patch) | |
tree | 64d0180fcfdcef6569297e3718b6b5143cea667d /src/exchangedb/pg_preflight.c | |
parent | 26624bed95aaa29dcea00095e167f3d9ec0a129e (diff) | |
download | exchange-787c56e7e95744852594fc6ad08ae9368b79723a.tar.xz |
-add do_purse_delete API
Diffstat (limited to 'src/exchangedb/pg_preflight.c')
-rw-r--r-- | src/exchangedb/pg_preflight.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/exchangedb/pg_preflight.c b/src/exchangedb/pg_preflight.c index cc4de6f76..4533c9a97 100644 --- a/src/exchangedb/pg_preflight.c +++ b/src/exchangedb/pg_preflight.c @@ -30,12 +30,10 @@ * Connect to the database if the connection does not exist yet. * * @param pg the plugin-specific state - * @param skip_prepare true if we should skip prepared statement setup * @return #GNUNET_OK on success */ enum GNUNET_GenericReturnValue -TEH_PG_internal_setup (struct PostgresClosure *pg, - bool skip_prepare); +TEH_PG_internal_setup (struct PostgresClosure *pg); enum GNUNET_GenericReturnValue @@ -47,13 +45,9 @@ TEH_PG_preflight (void *cls) GNUNET_PQ_EXECUTE_STATEMENT_END }; - if (! pg->init) - { - if (GNUNET_OK != - TEH_PG_internal_setup (pg, - false)) - return GNUNET_SYSERR; - } + if (GNUNET_OK != + TEH_PG_internal_setup (pg)) + return GNUNET_SYSERR; if (NULL == pg->transaction_name) return GNUNET_OK; /* all good */ if (GNUNET_OK == |