wirewatch: no need to do rollback on hard/soft error

This commit is contained in:
Florian Dold 2018-02-05 17:22:07 +01:00
parent b6b7a36737
commit f8d7c1ef39
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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;