From f8d7c1ef39df615c56417c3a98303cc46e7fd919 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 5 Feb 2018 17:22:07 +0100 Subject: [PATCH] wirewatch: no need to do rollback on hard/soft error --- src/exchange/taler-exchange-wirewatch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/exchange/taler-exchange-wirewatch.c b/src/exchange/taler-exchange-wirewatch.c index 652b34645..f28c80073 100644 --- a/src/exchange/taler-exchange-wirewatch.c +++ b/src/exchange/taler-exchange-wirewatch.c @@ -392,15 +392,13 @@ history_cb (void *cls, if (GNUNET_DB_STATUS_HARD_ERROR == qs) { GNUNET_break (0); - db_plugin->rollback (db_plugin->cls, - session); GNUNET_SCHEDULER_shutdown (); return GNUNET_SYSERR; } if (GNUNET_DB_STATUS_SOFT_ERROR == qs) { - db_plugin->rollback (db_plugin->cls, - session); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Got DB soft error for reserve_in_insert\n"); /* try again */ task = GNUNET_SCHEDULER_add_now (&find_transfers, NULL); @@ -469,8 +467,6 @@ find_transfers (void *cls) if (GNUNET_DB_STATUS_SOFT_ERROR == qs) { /* try again */ - db_plugin->rollback (db_plugin->cls, - session); task = GNUNET_SCHEDULER_add_now (&find_transfers, NULL); return;