summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_batch_reserves_in_insert.c
diff options
context:
space:
mode:
authorJoseph <Joseph.xu@efrei.net>2022-12-19 10:02:43 -0500
committerJoseph <Joseph.xu@efrei.net>2022-12-20 05:00:38 -0500
commitb0c106124c99a45282d94499f87fb1768914dba3 (patch)
tree49742d64f4e5f692d3a60253740dcec08c82e5aa /src/exchangedb/pg_batch_reserves_in_insert.c
parent48b7d45959d40cc129991a191a6aa3167412bd9e (diff)
downloadexchange-b0c106124c99a45282d94499f87fb1768914dba3.tar.gz
exchange-b0c106124c99a45282d94499f87fb1768914dba3.tar.bz2
exchange-b0c106124c99a45282d94499f87fb1768914dba3.zip
new batch test and standard deviation
Diffstat (limited to 'src/exchangedb/pg_batch_reserves_in_insert.c')
-rw-r--r--src/exchangedb/pg_batch_reserves_in_insert.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/exchangedb/pg_batch_reserves_in_insert.c b/src/exchangedb/pg_batch_reserves_in_insert.c
index 00c6b922e..5b6ab83a2 100644
--- a/src/exchangedb/pg_batch_reserves_in_insert.c
+++ b/src/exchangedb/pg_batch_reserves_in_insert.c
@@ -168,15 +168,15 @@ TEH_PG_batch_reserves_in_insert (
results[i] = (transaction_duplicate)
? GNUNET_DB_STATUS_SUCCESS_NO_RESULTS
: GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
- conflicts[i] = conflicted;
- // fprintf(stdout, "%d", conflicts[i]);
- if (! conflicts[i] && transaction_duplicate)
- {
- GNUNET_break (0);
- TEH_PG_rollback (pg);
- return GNUNET_DB_STATUS_HARD_ERROR;
- }
- need_update |= conflicted;
+ conflicts[i] = conflicted;
+ // fprintf(stdout, "%d", conflicts[i]);
+ if (!conflicts[i] && transaction_duplicate)
+ {
+ GNUNET_break (0);
+ TEH_PG_rollback (pg);
+ return GNUNET_DB_STATUS_HARD_ERROR;
+ }
+ need_update |= conflicted;
}
// commit
{