diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-02 06:36:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-02 06:36:58 +0200 |
commit | 1cbba4bec1551a4662029e2899e5120cc4793c4b (patch) | |
tree | a08bbdd6a87e4017cb598cf5028be188cc67cee0 /src/exchangedb/test_exchangedb.c | |
parent | 53e7547aaf74a0d34584e221ea92bea85c452d66 (diff) | |
download | exchange-1cbba4bec1551a4662029e2899e5120cc4793c4b.tar.xz |
fixing #4462: avoid temporary schemata altogether
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 16ee95f9c..2ef7f5d72 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -663,18 +663,27 @@ run (void *cls) result = 77; return; } + if (NULL != + (session = plugin->get_session (plugin->cls))) + { + if (GNUNET_OK != + plugin->drop_tables (plugin->cls, + session)) + { + result = 77; + goto drop; + } + } if (GNUNET_OK != - plugin->create_tables (plugin->cls, - GNUNET_YES)) + plugin->create_tables (plugin->cls)) { result = 77; goto drop; } if (NULL == - (session = plugin->get_session (plugin->cls, - GNUNET_YES))) + (session = plugin->get_session (plugin->cls))) { - result = 3; + result = 77; goto drop; } RND_BLK (&reserve_pub); @@ -934,8 +943,8 @@ run (void *cls) rh = NULL; if (NULL != session) GNUNET_break (GNUNET_OK == - plugin->drop_temporary (plugin->cls, - session)); + plugin->drop_tables (plugin->cls, + session)); if (NULL != dkp) destroy_denom_key_pair (dkp); if (NULL != cbc.sig.rsa_signature) |