diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-09-17 00:34:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-09-17 00:35:05 +0200 |
commit | 75b3065db390c1c631accd03b68f162953597733 (patch) | |
tree | ff5a5adb1c28a315c66e9898721bfdc5c4440e23 /src/include/anastasis_database_plugin.h | |
parent | e5e27b880b6df3c4263bca3177050cb6a5ae23a9 (diff) | |
download | anastasis-75b3065db390c1c631accd03b68f162953597733.tar.gz anastasis-75b3065db390c1c631accd03b68f162953597733.tar.bz2 anastasis-75b3065db390c1c631accd03b68f162953597733.zip |
expose DB garbage collection, ROLLBACK instead of committing if preflight check fails
Diffstat (limited to 'src/include/anastasis_database_plugin.h')
-rw-r--r-- | src/include/anastasis_database_plugin.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/anastasis_database_plugin.h b/src/include/anastasis_database_plugin.h index bc4b0e6..7bf91a2 100644 --- a/src/include/anastasis_database_plugin.h +++ b/src/include/anastasis_database_plugin.h @@ -232,9 +232,12 @@ struct ANASTASIS_DatabasePlugin * Does not return anything, as we will continue regardless of the outcome. * * @param cls the `struct PostgresClosure` with the plugin-specific state + * @return #GNUNET_OK if everything is fine + * #GNUNET_NO if a transaction was rolled back + * #GNUNET_SYSERR on hard errors */ - void - (*preflight) (void *cls); + enum GNUNET_GenericReturnValue + (*preflight)(void *cls); /** * Check that the database connection is still up. |