[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13584 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13584 - gnunet/src/datastore |
Date: |
Sat, 6 Nov 2010 14:59:07 +0100 |
Author: grothoff
Date: 2010-11-06 14:59:07 +0100 (Sat, 06 Nov 2010)
New Revision: 13584
Modified:
gnunet/src/datastore/plugin_datastore_postgres.c
Log:
report config used
Modified: gnunet/src/datastore/plugin_datastore_postgres.c
===================================================================
--- gnunet/src/datastore/plugin_datastore_postgres.c 2010-11-06 13:22:32 UTC
(rev 13583)
+++ gnunet/src/datastore/plugin_datastore_postgres.c 2010-11-06 13:59:07 UTC
(rev 13584)
@@ -315,22 +315,25 @@
"CONFIG",
&conninfo);
plugin->dbh = PQconnectdb (conninfo == NULL ? "" : conninfo);
- GNUNET_free_non_null (conninfo);
if (NULL == plugin->dbh)
{
/* FIXME: warn about out-of-memory? */
+ GNUNET_free_non_null (conninfo);
return GNUNET_SYSERR;
}
if (PQstatus (plugin->dbh) != CONNECTION_OK)
{
GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
"datastore-postgres",
- _("Unable to initialize Postgres: %s"),
+ _("Unable to initialize Postgres with configuration
`%s': %s"),
+ conninfo,
PQerrorMessage (plugin->dbh));
PQfinish (plugin->dbh);
plugin->dbh = NULL;
+ GNUNET_free_non_null (conninfo);
return GNUNET_SYSERR;
}
+ GNUNET_free_non_null (conninfo);
ret = PQexec (plugin->dbh,
"CREATE TABLE gn090 ("
" type INTEGER NOT NULL DEFAULT 0,"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13584 - gnunet/src/datastore,
gnunet <=