summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorMarco Boss <bossm8@bfh.ch>2022-03-02 10:50:51 +0100
committerMarco Boss <bossm8@bfh.ch>2022-03-02 10:50:51 +0100
commit2abe9bf6d7df83f480514dce06005a813503982c (patch)
tree14ad79a8f264c7cf75fe1a0a9a1fd0eed94ac260 /src/exchangedb/test_exchangedb.c
parent4978b1e966af48a18cac86aa224b3c266a9531d7 (diff)
downloadexchange-2abe9bf6d7df83f480514dce06005a813503982c.tar.gz
exchange-2abe9bf6d7df83f480514dce06005a813503982c.tar.bz2
exchange-2abe9bf6d7df83f480514dce06005a813503982c.zip
include partitioning logic in dbinit
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 497d6140a..e5b99f1ff 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -1333,6 +1333,7 @@ run (void *cls)
struct TALER_EXCHANGEDB_TransactionList *tlp;
const char *sndr = "payto://x-taler-bank/localhost:8080/1";
const char *rcvr = "payto://x-taler-bank/localhost:8080/2";
+ const uint32_t num_partitions = 10;
unsigned int matched;
unsigned int cnt;
enum GNUNET_DB_QueryStatus qs;
@@ -1378,6 +1379,12 @@ run (void *cls)
result = 77;
goto cleanup;
}
+ if (GNUNET_OK !=
+ plugin->setup_partitions (plugin->cls, &num_partitions))
+ {
+ result = 77;
+ goto cleanup;
+ }
plugin->preflight (plugin->cls);
FAILIF (GNUNET_OK !=
plugin->start (plugin->cls,