From 0cf9a9984ce733d8315057b810bfda90cec5c04a Mon Sep 17 00:00:00 2001 From: Marco Boss Date: Thu, 31 Mar 2022 17:00:44 +0200 Subject: add sharding logic --- src/include/taler_exchangedb_plugin.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 260fab3c..b3e51c10 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2241,6 +2241,21 @@ struct TALER_EXCHANGEDB_Plugin (*setup_partitions)(void *cls, const uint32_t num); + /** + * Change already present tables of the database to num shards + * Only has an effect if there are default partitions only + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param num the number of shard servers to create. The shard servers + * must follow the numbering of 1-N, have the same user as + * the master and have tables named _n where n is the same + * as the servers index of N. + * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure + */ + enum GNUNET_GenericReturnValue + (*setup_shards)(void *cls, + const uint32_t num); + /** * Start a transaction. * -- cgit v1.2.3