[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: fix failure to commit transactio
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: fix failure to commit transaction bug reported by MS |
Date: |
Thu, 31 Mar 2022 02:55:53 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new d88413f9 fix failure to commit transaction bug reported by MS
d88413f9 is described below
commit d88413f94d812552c1e76cfa6c2237fa9b318faf
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Thu Mar 31 02:54:42 2022 +0200
fix failure to commit transaction bug reported by MS
---
src/backenddb/plugin_merchantdb_postgres.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c
b/src/backenddb/plugin_merchantdb_postgres.c
index 39f42aef..d45e2fbb 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -5947,7 +5947,7 @@ RETRY:
}
if (GNUNET_OK !=
postgres_start (pg,
- "enable tip reserve"))
+ "authorize tip"))
{
GNUNET_break (0);
return TALER_EC_GENERIC_DB_START_FAILED;
@@ -5981,7 +5981,13 @@ RETRY:
break;
}
if (TALER_EC_NONE != lac.ec)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ "Enabling tip reserved failed with status %d\n",
+ lac.ec);
+ postgres_rollback (pg);
return lac.ec;
+ }
GNUNET_assert (lac.ok);
reserve_pubp = &lac.reserve_pub;
}
@@ -6015,8 +6021,7 @@ RETRY:
{
GNUNET_break (0);
postgres_rollback (pg);
- return
- TALER_EC_GENERIC_DB_FETCH_FAILED;
+ return TALER_EC_GENERIC_DB_FETCH_FAILED;
}
if (0 == qs)
{
@@ -6068,8 +6073,7 @@ RETRY:
{
GNUNET_break (0);
postgres_rollback (pg);
- return
- TALER_EC_GENERIC_DB_STORE_FAILED;
+ return TALER_EC_GENERIC_DB_STORE_FAILED;
}
}
GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: fix failure to commit transaction bug reported by MS,
gnunet <=