aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-14 13:30:29 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-14 13:30:29 +0000
commit6bde5e0c83d1fd344a26de64172ddce37920bb40 (patch)
tree4554c283efda37c5c980ec869f262c254a6a5734 /src/namestore
parentabdd3dfdd95732cff18b07efc1bcb86be175b3c4 (diff)
downloadgnunet-6bde5e0c83d1fd344a26de64172ddce37920bb40.tar.gz
gnunet-6bde5e0c83d1fd344a26de64172ddce37920bb40.zip
- fix message log level
- fix merging - fix docu
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/gnunet-service-namestore.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index a05055bf9..380b561c7 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -442,7 +442,7 @@ get_nick_record (const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone)
442 if ((NULL == nick) || (GNUNET_OK != res)) 442 if ((NULL == nick) || (GNUNET_OK != res))
443 { 443 {
444 GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub); 444 GNUNET_CRYPTO_ecdsa_key_get_public (zone, &pub);
445 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "No nick name set for zone `%s'\n", 445 GNUNET_log(GNUNET_ERROR_TYPE_INFO | GNUNET_ERROR_TYPE_BULK, "No nick name set for zone `%s'\n",
446 GNUNET_CRYPTO_ecdsa_public_key_to_string (&pub)); 446 GNUNET_CRYPTO_ecdsa_public_key_to_string (&pub));
447 return NULL; 447 return NULL;
448 } 448 }
@@ -536,12 +536,14 @@ send_lookup_response (struct GNUNET_SERVER_NotificationContext *nc,
536 { 536 {
537 nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; 537 nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE;
538 merge_records (rd_count,rd, 1, nick, &res_count, &res); 538 merge_records (rd_count,rd, 1, nick, &res_count, &res);
539 //fprintf (stderr, "Merging %u records for `%s' with NICK records\n",rd_count, name);
539 GNUNET_free (nick); 540 GNUNET_free (nick);
540 } 541 }
541 else 542 else
542 { 543 {
543 res_count = rd_count; 544 res_count = rd_count;
544 res = (struct GNUNET_GNSRECORD_Data *) rd; 545 res = (struct GNUNET_GNSRECORD_Data *) rd;
546 //fprintf (stderr, "Not merging %u records for `%s' with NICK records\n",rd_count, name);
545 } 547 }
546 548
547 name_len = strlen (name) + 1; 549 name_len = strlen (name) + 1;
@@ -563,7 +565,7 @@ send_lookup_response (struct GNUNET_SERVER_NotificationContext *nc,
563 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 565 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
564 "Sending `%s' message with %u records and size %u\n", 566 "Sending `%s' message with %u records and size %u\n",
565 "RECORD_RESULT", 567 "RECORD_RESULT",
566 rd_count, 568 res_count,
567 msg_size); 569 msg_size);
568 GNUNET_SERVER_notification_context_unicast (nc, 570 GNUNET_SERVER_notification_context_unicast (nc,
569 client, 571 client,
@@ -636,7 +638,7 @@ finish_cache_operation (void *cls,
636 638
637/** 639/**
638 * We just touched the plaintext information about a name in our zone; 640 * We just touched the plaintext information about a name in our zone;
639 * refresh the corresponding (encrypted) block in the namestore. 641 * refresh the corresponding (encrypted) block in the namecache.
640 * 642 *
641 * @param client client responsible for the request 643 * @param client client responsible for the request
642 * @param rid request ID of the client 644 * @param rid request ID of the client