diff options
author | Joseph <Joseph.xu@efrei.net> | 2022-12-19 10:02:43 -0500 |
---|---|---|
committer | Joseph <Joseph.xu@efrei.net> | 2022-12-20 05:00:38 -0500 |
commit | b0c106124c99a45282d94499f87fb1768914dba3 (patch) | |
tree | 49742d64f4e5f692d3a60253740dcec08c82e5aa /src/exchangedb/pg_batch_reserves_in_insert.c | |
parent | 48b7d45959d40cc129991a191a6aa3167412bd9e (diff) | |
download | exchange-b0c106124c99a45282d94499f87fb1768914dba3.tar.xz |
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.c | 18 |
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 { |