aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-11 08:53:09 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-11 08:53:09 +0000
commit464bc25469fa8c415d0a852ca374da3593bc94a6 (patch)
treed02d9d190802021ee6f91f41632d7e650c3298e2 /src/peerstore
parentbdb2332aea0b10271be0096fb4ed18aefe79ea95 (diff)
downloadgnunet-464bc25469fa8c415d0a852ca374da3593bc94a6.tar.gz
gnunet-464bc25469fa8c415d0a852ca374da3593bc94a6.zip
added fixme
Diffstat (limited to 'src/peerstore')
-rw-r--r--src/peerstore/gnunet-service-peerstore.c10
-rw-r--r--src/peerstore/peerstore_api.c4
2 files changed, 10 insertions, 4 deletions
diff --git a/src/peerstore/gnunet-service-peerstore.c b/src/peerstore/gnunet-service-peerstore.c
index 771de72d4..d4f0ebc2c 100644
--- a/src/peerstore/gnunet-service-peerstore.c
+++ b/src/peerstore/gnunet-service-peerstore.c
@@ -384,7 +384,7 @@ run (void *cls,
384 if (GNUNET_OK != 384 if (GNUNET_OK !=
385 GNUNET_CONFIGURATION_get_value_string (cfg, "peerstore", "DATABASE", 385 GNUNET_CONFIGURATION_get_value_string (cfg, "peerstore", "DATABASE",
386 &database)) 386 &database))
387 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No database backend configured\n"); 387 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("No database backend configured\n"));
388 388
389 else 389 else
390 { 390 {
@@ -393,7 +393,13 @@ run (void *cls,
393 GNUNET_free(database); 393 GNUNET_free(database);
394 } 394 }
395 if(NULL == db) 395 if(NULL == db)
396 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Could not load database backend `%s'\n", db_lib_name); 396 {
397 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, _("Could not load database backend `%s'\n"), db_lib_name);
398 /* FIXME:
399 * error handling required, otherwise you try to access db
400 * in message handlers like handle_store ...
401 * if(GNUNET_OK != db->store_record(db->cls, ... */
402 }
397 else 403 else
398 { 404 {
399 nc = GNUNET_SERVER_notification_context_create (server, 16); 405 nc = GNUNET_SERVER_notification_context_create (server, 16);
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index b53bc2f1a..bf5fb3529 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -284,7 +284,7 @@ handle_client_error (void *cls, enum GNUNET_MQ_Error error)
284{ 284{
285 struct GNUNET_PEERSTORE_Handle *h = cls; 285 struct GNUNET_PEERSTORE_Handle *h = cls;
286 286
287 LOG(GNUNET_ERROR_TYPE_ERROR, "Received an error notification from MQ of type: %d\n", error); 287 LOG(GNUNET_ERROR_TYPE_ERROR, _("Received an error notification from MQ of type: %d\n"), error);
288 reconnect(h); 288 reconnect(h);
289} 289}
290 290
@@ -551,7 +551,7 @@ void handle_iterate_result (void *cls, const struct GNUNET_MessageHeader *msg)
551 ic = h->iterate_head; 551 ic = h->iterate_head;
552 if(NULL == ic) 552 if(NULL == ic)
553 { 553 {
554 LOG(GNUNET_ERROR_TYPE_ERROR, "Unexpected iteration response, this should not happen.\n"); 554 LOG(GNUNET_ERROR_TYPE_ERROR, _("Unexpected iteration response, this should not happen.\n"));
555 reconnect(h); 555 reconnect(h);
556 return; 556 return;
557 } 557 }