diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-11 08:53:09 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-11 08:53:09 +0000 |
commit | 464bc25469fa8c415d0a852ca374da3593bc94a6 (patch) | |
tree | d02d9d190802021ee6f91f41632d7e650c3298e2 /src/peerstore/gnunet-service-peerstore.c | |
parent | bdb2332aea0b10271be0096fb4ed18aefe79ea95 (diff) | |
download | gnunet-464bc25469fa8c415d0a852ca374da3593bc94a6.tar.gz gnunet-464bc25469fa8c415d0a852ca374da3593bc94a6.zip |
added fixme
Diffstat (limited to 'src/peerstore/gnunet-service-peerstore.c')
-rw-r--r-- | src/peerstore/gnunet-service-peerstore.c | 10 |
1 files changed, 8 insertions, 2 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); |