aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_batch2_reserves_in_insert.c
diff options
context:
space:
mode:
authorJoseph <Joseph.xu@efrei.net>2023-01-06 06:16:52 -0500
committerJoseph <Joseph.xu@efrei.net>2023-01-06 06:16:52 -0500
commit865f3aca19347bf797b289a1f2ea005282a739a3 (patch)
tree569a634952c4de44317f0f7c77181f2fb8ffbb70 /src/exchangedb/pg_batch2_reserves_in_insert.c
parent043c46c59d62abcafef5c37fb97c66995e6b3859 (diff)
downloadexchange-865f3aca19347bf797b289a1f2ea005282a739a3.tar.xz
corrections applied to batch 1
Diffstat (limited to 'src/exchangedb/pg_batch2_reserves_in_insert.c')
-rw-r--r--src/exchangedb/pg_batch2_reserves_in_insert.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/exchangedb/pg_batch2_reserves_in_insert.c b/src/exchangedb/pg_batch2_reserves_in_insert.c
index dd4c10f75..510fde85d 100644
--- a/src/exchangedb/pg_batch2_reserves_in_insert.c
+++ b/src/exchangedb/pg_batch2_reserves_in_insert.c
@@ -787,6 +787,9 @@ TEH_PG_batch2_reserves_in_insert (void *cls,
need_update |= conflicts[i+1];
t_duplicate |= transaction_duplicate[i];
t_duplicate |= transaction_duplicate[i+1];
+ results[i] = (t_duplicate)
+ ? GNUNET_DB_STATUS_SUCCESS_NO_RESULTS
+ : GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
i += 2;
break;
case 1:
@@ -831,15 +834,6 @@ TEH_PG_batch2_reserves_in_insert (void *cls,
{
goto exit;
}
- /* fprintf(stdout, "t : %d", t_duplicate);
- if (t_duplicate)
- {
- GNUNET_break (0);
- TEH_PG_rollback (pg);
- return GNUNET_DB_STATUS_HARD_ERROR;
- }
- */
-
// begin serializable
{
if (GNUNET_OK !=