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/exchange/taler-exchange-httpd.c | |
parent | 53e7547aaf74a0d34584e221ea92bea85c452d66 (diff) | |
download | exchange-1cbba4bec1551a4662029e2899e5120cc4793c4b.tar.gz exchange-1cbba4bec1551a4662029e2899e5120cc4793c4b.tar.bz2 exchange-1cbba4bec1551a4662029e2899e5120cc4793c4b.zip |
fixing #4462: avoid temporary schemata altogether
Diffstat (limited to 'src/exchange/taler-exchange-httpd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 11f2e1c9d..5f9f51422 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -81,11 +81,6 @@ struct TALER_MasterPublicKeyP TMH_master_public_key; struct TALER_EXCHANGEDB_Plugin *TMH_plugin; /** - * Are we running in test mode? - */ -int TMH_test_mode; - -/** * Default timeout in seconds for HTTP requests. */ static unsigned int connection_timeout = 30; @@ -466,9 +461,7 @@ exchange_serve_process_config () { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Running in TEST mode! Database contents will not persist!\n"); - TMH_test_mode = GNUNET_YES; - TMH_plugin->create_tables (TMH_plugin->cls, - GNUNET_YES); + TMH_plugin->create_tables (TMH_plugin->cls); } { @@ -906,19 +899,6 @@ main (int argc, MHD_stop_daemon (mydaemon); break; } - - if (GNUNET_YES == TMH_test_mode) - { - struct TALER_EXCHANGEDB_Session *session; - - session = TMH_plugin->get_session (TMH_plugin->cls, - GNUNET_YES); - if (NULL == session) - GNUNET_break (0); - else - TMH_plugin->drop_temporary (TMH_plugin->cls, - session); - } TALER_EXCHANGEDB_plugin_unload (TMH_plugin); TMH_VALIDATION_done (); return (GNUNET_SYSERR == ret) ? 1 : 0; |