diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-04-02 18:43:49 +0200 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-04-02 18:43:49 +0200 |
commit | ae75ff2cb4f0b7322a9f0451acaadfb7b7514b54 (patch) | |
tree | 815a2bdc75d437f733ec8f60b8d150f915ea9540 /src/include/taler_exchangedb_plugin.h | |
parent | caabee9e9482b0e2553172ce17676a0ad89b38ff (diff) |
extend sharding logic that shard nodes can be initialied and dropped
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |