aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-04 11:06:37 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-04 11:06:37 +0200
commitc97292593371e591dc7ba4c38947ebf228b13eb2 (patch)
treec95f271116cd47af810c0fb6e980108283724b6c /src/exchangedb/plugin_exchangedb_postgres.c
parent1c1d28d3f5746fac496b517d0b3b78ca1726f01f (diff)
fix aggregator benchmark generation logic
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 961921eaa..d66370a25 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -4636,7 +4636,7 @@ struct MatchingDepositContext
/**
* Set to #GNUNET_SYSERR on hard errors.
*/
- int status;
+ enum GNUNET_GenericReturnValue status;
};
@@ -4657,7 +4657,7 @@ match_deposit_cb (void *cls,
struct MatchingDepositContext *mdc = cls;
struct PostgresClosure *pg = mdc->pg;
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Found %u/%u matching deposits\n",
num_results,
mdc->limit);
@@ -4735,15 +4735,16 @@ postgres_iterate_matching_deposits (
GNUNET_PQ_query_param_auto_from_type (h_wire),
GNUNET_PQ_query_param_end
};
- struct MatchingDepositContext mdc;
+ struct MatchingDepositContext mdc = {
+ .deposit_cb = deposit_cb,
+ .deposit_cb_cls = deposit_cb_cls,
+ .merchant_pub = merchant_pub,
+ .pg = pg,
+ .limit = limit,
+ .status = GNUNET_OK
+ };
enum GNUNET_DB_QueryStatus qs;
- mdc.deposit_cb = deposit_cb;
- mdc.deposit_cb_cls = deposit_cb_cls;
- mdc.merchant_pub = merchant_pub;
- mdc.pg = pg;
- mdc.limit = limit;
- mdc.status = GNUNET_OK;
qs = GNUNET_PQ_eval_prepared_multi_select (pg->conn,
"deposits_iterate_matching",
params,