gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: Back out early if w


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: Back out early if we can't connect to postgres db
Date: Sat, 11 Feb 2017 16:47:39 +0100

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

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new dfdca4e  Back out early if we can't connect to postgres db
dfdca4e is described below

commit dfdca4e94cb9150d8cf0d73e368ecf0c0ebff685
Author: Florian Dold <address@hidden>
AuthorDate: Sat Feb 11 16:46:36 2017 +0100

    Back out early if we can't connect to postgres db
---
 src/backenddb/plugin_merchantdb_postgres.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backenddb/plugin_merchantdb_postgres.c 
b/src/backenddb/plugin_merchantdb_postgres.c
index 1c47902..2845924 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1363,6 +1363,11 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
     }
   }
   pg->conn = GNUNET_POSTGRES_connect (cfg, "merchantdb-postgres");
+  if (NULL == pg->conn)
+  {
+    GNUNET_break (0);
+    return NULL;
+  }
   plugin = GNUNET_new (struct TALER_MERCHANTDB_Plugin);
   plugin->cls = pg;
   plugin->drop_tables = &postgres_drop_tables;

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



reply via email to

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