diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-03-31 17:00:44 +0200 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-03-31 17:00:44 +0200 |
commit | 0cf9a9984ce733d8315057b810bfda90cec5c04a (patch) | |
tree | 767e0d72b2a3dcc8b4cbd2cea5cadd1c6139492e /src/include/taler_exchangedb_plugin.h | |
parent | eadee56dcf9d2fed8b8e94d271db31e3c3832cfa (diff) |
add sharding logic
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -2242,6 +2242,21 @@ struct TALER_EXCHANGEDB_Plugin 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 <table>_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. * * @param cls the @e cls of this struct with the plugin-specific state |