From ae75ff2cb4f0b7322a9f0451acaadfb7b7514b54 Mon Sep 17 00:00:00 2001 From: Marco Boss Date: Sat, 2 Apr 2022 18:43:49 +0200 Subject: extend sharding logic that shard nodes can be initialied and dropped --- src/include/taler_exchangedb_plugin.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 7383913a3..5512d3336 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2244,6 +2244,16 @@ struct TALER_EXCHANGEDB_Plugin enum GNUNET_GenericReturnValue (*drop_tables)(void *cls); + /** + * Drop the Taler tables on a shard. This should only be used in testcases. + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param old_idx the index which was used then the database was initialized. + * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure + */ + enum GNUNET_GenericReturnValue + (*drop_shard_tables)(void *cls, + uint32_t old_idx); /** * Create the necessary tables if they are not present -- cgit v1.2.3