[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33633 - gnunet/src/peerstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33633 - gnunet/src/peerstore |
Date: |
Wed, 11 Jun 2014 10:53:10 +0200 |
Author: wachs
Date: 2014-06-11 10:53:09 +0200 (Wed, 11 Jun 2014)
New Revision: 33633
Modified:
gnunet/src/peerstore/gnunet-service-peerstore.c
gnunet/src/peerstore/peerstore_api.c
Log:
added fixme
Modified: gnunet/src/peerstore/gnunet-service-peerstore.c
===================================================================
--- gnunet/src/peerstore/gnunet-service-peerstore.c 2014-06-11 08:47:33 UTC
(rev 33632)
+++ gnunet/src/peerstore/gnunet-service-peerstore.c 2014-06-11 08:53:09 UTC
(rev 33633)
@@ -384,7 +384,7 @@
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg, "peerstore", "DATABASE",
&database))
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No database backend configured\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("No database backend
configured\n"));
else
{
@@ -393,7 +393,13 @@
GNUNET_free(database);
}
if(NULL == db)
- GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Could not load database backend
`%s'\n", db_lib_name);
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Could not load database
backend `%s'\n"), db_lib_name);
+ /* FIXME:
+ * error handling required, otherwise you try to access db
+ * in message handlers like handle_store ...
+ * if(GNUNET_OK != db->store_record(db->cls, ... */
+ }
else
{
nc = GNUNET_SERVER_notification_context_create (server, 16);
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-06-11 08:47:33 UTC (rev
33632)
+++ gnunet/src/peerstore/peerstore_api.c 2014-06-11 08:53:09 UTC (rev
33633)
@@ -284,7 +284,7 @@
{
struct GNUNET_PEERSTORE_Handle *h = cls;
- LOG(GNUNET_ERROR_TYPE_ERROR, "Received an error notification from MQ of
type: %d\n", error);
+ LOG(GNUNET_ERROR_TYPE_ERROR, _("Received an error notification from MQ of
type: %d\n"), error);
reconnect(h);
}
@@ -551,7 +551,7 @@
ic = h->iterate_head;
if(NULL == ic)
{
- LOG(GNUNET_ERROR_TYPE_ERROR, "Unexpected iteration response, this should
not happen.\n");
+ LOG(GNUNET_ERROR_TYPE_ERROR, _("Unexpected iteration response, this should
not happen.\n"));
reconnect(h);
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33633 - gnunet/src/peerstore,
gnunet <=