aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_exchangedb_plugin.h
diff options
context:
space:
mode:
authorMarco Boss <bossm8@bfh.ch>2022-04-02 18:43:49 +0200
committerMarco Boss <bossm8@bfh.ch>2022-04-02 18:43:49 +0200
commitae75ff2cb4f0b7322a9f0451acaadfb7b7514b54 (patch)
tree815a2bdc75d437f733ec8f60b8d150f915ea9540 /src/include/taler_exchangedb_plugin.h
parentcaabee9e9482b0e2553172ce17676a0ad89b38ff (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.h10
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