summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-15 12:20:00 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-15 12:20:00 +0200
commit202827ebdaafdf33b78c202bcbb6917dd65dd1c1 (patch)
treeb5689b28c58e1698dff0f296dbe78ec432430512 /src/exchangedb/plugin_exchangedb_postgres.c
parentaea82d3dcde94b68a70a65be8736cf7ad437b0c7 (diff)
parent1b3bf1a00126baffd016676ad1d668637b8b2efe (diff)
downloadexchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.gz
exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.tar.bz2
exchange-202827ebdaafdf33b78c202bcbb6917dd65dd1c1.zip
merging Florian's changes with my wire changes
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 1b625a7a..e72e96cc 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -1953,7 +1953,10 @@ postgres_reserves_in_insert (void *cls,
"reserve_create",
params);
if (0 > qs)
+ {
+ GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
return qs;
+ }
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs)
{
/* Maybe DB did not detect serializiability error already,
@@ -1980,7 +1983,10 @@ postgres_reserves_in_insert (void *cls,
"reserves_in_add_transaction",
params);
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != qs)
+ {
+ GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs);
return qs;
+ }
}
if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT == reserve_exists)
@@ -1999,7 +2005,7 @@ postgres_reserves_in_insert (void *cls,
balance))
{
/* currency overflow or incompatible currency */
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Attempt to deposit incompatible amount into reserve\n");
return GNUNET_DB_STATUS_HARD_ERROR;
}