aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarco Boss <bossm8@bfh.ch>2022-04-02 19:07:12 +0200
committerMarco Boss <bossm8@bfh.ch>2022-04-02 19:07:12 +0200
commit393cea46d1b76b0229272edbc334f0471a069154 (patch)
tree91c86f6583be277ac742286ef520952871f13b52 /src/include
parent6f027fc13099f870e359aaf295f5e4051801c321 (diff)
parent7ba135362e856dd7358878a03dc8991d8cc674cf (diff)
downloadexchange-393cea46d1b76b0229272edbc334f0471a069154.tar.xz
implement shard node setup and drop
Diffstat (limited to 'src/include')
-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