summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarco Boss <bossm8@bfh.ch>2022-03-02 19:03:54 +0100
committerMarco Boss <bossm8@bfh.ch>2022-03-02 19:03:54 +0100
commit57e3864c095f7ac7ca2fe5744a7ec05feb7d56be (patch)
treebf58c563f59389902fc95fac227122dbb099e3fc /src/include
parent10d7d93ad8002b0ea70899d8cdb503b91ce20d74 (diff)
parent79d123d1b4a39e69cfbcb3820e71e805a623b8ad (diff)
downloadexchange-57e3864c095f7ac7ca2fe5744a7ec05feb7d56be.tar.gz
exchange-57e3864c095f7ac7ca2fe5744a7ec05feb7d56be.tar.bz2
exchange-57e3864c095f7ac7ca2fe5744a7ec05feb7d56be.zip
Include partitioning in dbinit
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 846183ee5..9841d45dc 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2232,6 +2232,17 @@ struct TALER_EXCHANGEDB_Plugin
enum GNUNET_GenericReturnValue
(*create_tables)(void *cls);
+ /**
+ * Change already present tables of the database to num partitions
+ * 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 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.