[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: address constraint violation det
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: address constraint violation detected by peer-repair integration test |
Date: |
Thu, 21 Sep 2023 11:39:14 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new c11e833e address constraint violation detected by peer-repair
integration test
c11e833e is described below
commit c11e833eb64b3dcb40d71cc5567eaaf8df83f774
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Sep 21 11:37:36 2023 +0200
address constraint violation detected by peer-repair integration test
---
src/exchangedb/exchange_do_purse_merge.sql | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/exchangedb/exchange_do_purse_merge.sql
b/src/exchangedb/exchange_do_purse_merge.sql
index 308e4f49..7f8af9ed 100644
--- a/src/exchangedb/exchange_do_purse_merge.sql
+++ b/src/exchangedb/exchange_do_purse_merge.sql
@@ -44,6 +44,17 @@ DECLARE
balance taler_amount;
BEGIN
+-- Initialize reserve, if not yet exists.
+INSERT INTO reserves
+ (reserve_pub
+ ,expiration_date
+ ,gc_date)
+ VALUES
+ (in_reserve_pub
+ ,in_expiration_date
+ ,in_expiration_date)
+ ON CONFLICT DO NOTHING;
+
IF in_partner_url IS NULL
THEN
@@ -151,17 +162,6 @@ END IF;
out_conflict=FALSE;
--- Initialize reserve, if not yet exists.
-INSERT INTO reserves
- (reserve_pub
- ,expiration_date
- ,gc_date)
- VALUES
- (in_reserve_pub
- ,in_expiration_date
- ,in_expiration_date)
- ON CONFLICT DO NOTHING;
-
IF (my_in_reserve_quota)
THEN
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: address constraint violation detected by peer-repair integration test,
gnunet <=