gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: no longer create tables on start


From: gnunet
Subject: [taler-exchange] branch master updated: no longer create tables on startup of exchange aggregator/httpd
Date: Mon, 09 Mar 2020 23:53:30 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 65062e43 no longer create tables on startup of exchange 
aggregator/httpd
65062e43 is described below

commit 65062e4354f9e4ba9e2482101cd10c2ee7e757f8
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Mar 9 23:53:26 2020 +0100

    no longer create tables on startup of exchange aggregator/httpd
---
 doc/prebuilt                             |  2 +-
 src/exchange/taler-exchange-aggregator.c |  9 ---------
 src/exchange/taler-exchange-httpd.c      | 15 ---------------
 3 files changed, 1 insertion(+), 25 deletions(-)

diff --git a/doc/prebuilt b/doc/prebuilt
index 934a6a18..ca53235c 160000
--- a/doc/prebuilt
+++ b/doc/prebuilt
@@ -1 +1 @@
-Subproject commit 934a6a18301e81c4fd1b3a8cda2dc13dca4741cc
+Subproject commit ca53235ccfa0458ebf11c204888ca370e20ec3f5
diff --git a/src/exchange/taler-exchange-aggregator.c 
b/src/exchange/taler-exchange-aggregator.c
index e115e52d..90f9f28c 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -682,15 +682,6 @@ parse_wirewatch_config ()
              "Failed to initialize DB subsystem\n");
     return GNUNET_SYSERR;
   }
-  if (GNUNET_OK !=
-      db_plugin->create_tables (db_plugin->cls))
-  {
-    fprintf (stderr,
-             "Failed to initialize DB tables\n");
-    TALER_EXCHANGEDB_plugin_unload (db_plugin);
-    db_plugin = NULL;
-    return GNUNET_SYSERR;
-  }
   TALER_EXCHANGEDB_find_accounts (cfg,
                                   &add_account_cb,
                                   NULL);
diff --git a/src/exchange/taler-exchange-httpd.c 
b/src/exchange/taler-exchange-httpd.c
index 0061ac86..98d6a9ba 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",

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]