From 65062e4354f9e4ba9e2482101cd10c2ee7e757f8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 9 Mar 2020 23:53:26 +0100 Subject: no longer create tables on startup of exchange aggregator/httpd --- src/exchange/taler-exchange-httpd.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/exchange/taler-exchange-httpd.c') diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 0061ac862..98d6a9ba5 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -115,11 +115,6 @@ static unsigned int connection_timeout = 30; */ static struct MHD_Daemon *mhd; -/** - * Initialize the database by creating tables and indices. - */ -static int init_db; - /** * Port to run the daemon on. */ @@ -835,12 +830,6 @@ exchange_serve_process_config () TEH_VALIDATION_done (); return GNUNET_SYSERR; } - if (0 != init_db) - { - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Ensuring that tables and indices are created!\n"); - TEH_plugin->create_tables (TEH_plugin->cls); - } if (GNUNET_OK != TALER_MHD_parse_config (cfg, @@ -1240,10 +1229,6 @@ main (int argc, "force HTTP connections to be closed after each request", &connection_close), GNUNET_GETOPT_option_cfgfile (&cfgfile), - GNUNET_GETOPT_option_flag ('i', - "init-db", - "create database tables and indicies if necessary", - &init_db), GNUNET_GETOPT_option_uint ('t', "timeout", "SECONDS", -- cgit v1.2.3