diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-03-02 10:50:51 +0100 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-03-02 10:50:51 +0100 |
commit | 2abe9bf6d7df83f480514dce06005a813503982c (patch) | |
tree | 14ad79a8f264c7cf75fe1a0a9a1fd0eed94ac260 /src/include | |
parent | 4978b1e966af48a18cac86aa224b3c266a9531d7 (diff) | |
download | exchange-2abe9bf6d7df83f480514dce06005a813503982c.tar.xz |
include partitioning logic in dbinit
Diffstat (limited to 'src/include')
-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 846183ee5..8b0100c88 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2232,6 +2232,16 @@ struct TALER_EXCHANGEDB_Plugin enum GNUNET_GenericReturnValue (*create_tables)(void *cls); + /** + * Change already present tables of the database to more partitions + * + * @param cls the @e cls of this struct with the plugin-specific state + * @param num the number of partitions to create for each partitioned table + * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure + */ + enum GNUNET_GenericReturnValue + (*setup_partitions)(void *cls, + const uint32_t *num); /** * Start a transaction. |