rollback transaction to end transaction scope before releasing the shard (fixes #7216)

This commit is contained in:
Christian Grothoff 2022-04-02 03:50:30 +02:00
parent caf66486e7
commit 6c66f6f5cf
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -453,6 +453,7 @@ run_aggregation (void *cls)
au_active.payto_uri);
global_ret = EXIT_FAILURE;
GNUNET_SCHEDULER_shutdown ();
db_plugin->rollback (db_plugin->cls);
release_shard (s);
return;
}
@ -477,6 +478,7 @@ run_aggregation (void *cls)
GNUNET_TIME_timestamp2s (au_active.execution_time));
global_ret = EXIT_FAILURE;
GNUNET_SCHEDULER_shutdown ();
db_plugin->rollback (db_plugin->cls);
release_shard (s);
return;
}
@ -707,6 +709,7 @@ run_aggregation (void *cls)
GNUNET_break (0);
global_ret = EXIT_FAILURE;
GNUNET_SCHEDULER_shutdown ();
db_plugin->rollback (db_plugin->cls); /* just in case */
release_shard (s);
return;
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
@ -720,6 +723,7 @@ run_aggregation (void *cls)
GNUNET_break (0);
global_ret = EXIT_FAILURE;
GNUNET_SCHEDULER_shutdown ();
db_plugin->rollback (db_plugin->cls); /* just in case */
release_shard (s);
return;
}