summaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-20 12:44:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-20 12:44:40 +0100
commit7820b4b0021ba63027d140765c4167feeee40246 (patch)
tree920fc5a2a9f973917f1599e0a7ee2cf0307779b0 /src/backenddb
parent4711dcff400d31d5efc097b7cf372e3732dea035 (diff)
downloadmerchant-7820b4b0021ba63027d140765c4167feeee40246.tar.gz
merchant-7820b4b0021ba63027d140765c4167feeee40246.tar.bz2
merchant-7820b4b0021ba63027d140765c4167feeee40246.zip
add missing commit/rollback
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 881f682d..48b72448 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -2867,6 +2867,7 @@ postgres_enable_tip_reserve (void *cls,
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != qs)
{
/* UUID already exists, we are done! */
+ postgres_rollback (pg);
return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
}
}
@@ -3298,6 +3299,7 @@ postgres_pickup_tip (void *cls,
postgres_rollback (pg);
return TALER_EC_TIP_PICKUP_AMOUNT_CHANGED;
}
+ postgres_commit (pg);
return TALER_EC_NONE; /* we are done! */
}
}