aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_reserves_in_insert.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-16 15:45:35 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-16 15:45:35 +0100
commit6596e6c72362d3cbc6b383feb22b3a99717dbf66 (patch)
treebfc267c758b672682dc9cd08f2423d275e59eabb /src/exchangedb/pg_reserves_in_insert.c
parent402ca17600d57e2a3569771eb57881c42d5db0e4 (diff)
downloadexchange-6596e6c72362d3cbc6b383feb22b3a99717dbf66.tar.xz
fix for foreign key constraint problem for free purses on purse creation from reserve
Diffstat (limited to 'src/exchangedb/pg_reserves_in_insert.c')
-rw-r--r--src/exchangedb/pg_reserves_in_insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/pg_reserves_in_insert.c b/src/exchangedb/pg_reserves_in_insert.c
index 428e19231..0fdc4a16c 100644
--- a/src/exchangedb/pg_reserves_in_insert.c
+++ b/src/exchangedb/pg_reserves_in_insert.c
@@ -199,7 +199,7 @@ TEH_PG_reserves_in_insert (void *cls,
(We are only run in a larger transaction for performance.) */
enum GNUNET_DB_QueryStatus cs;
- cs = TEH_PG_commit(pg);
+ cs = TEH_PG_commit (pg);
if (cs < 0)
return cs;
if (GNUNET_OK !=
@@ -257,7 +257,7 @@ TEH_PG_reserves_in_insert (void *cls,
updated_reserve.gc = GNUNET_TIME_timestamp_max (gc,
reserve.gc);
qs3 = TEH_PG_reserves_update (pg,
- &updated_reserve);
+ &updated_reserve);
switch (qs3)
{
case GNUNET_DB_STATUS_HARD_ERROR: