diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-03 16:35:44 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-03 16:35:44 +0000 |
commit | 6d5f6cb60317c093517578fbee25fae3663848d4 (patch) | |
tree | 019c2e9027d1324f6a73f4d6476c70f0ab2d71e5 /src/namestore | |
parent | 79e273456e735953ab93e7fdc573d3fdac2e14a6 (diff) | |
download | gnunet-6d5f6cb60317c093517578fbee25fae3663848d4.tar.gz gnunet-6d5f6cb60317c093517578fbee25fae3663848d4.zip |
include nick in cache for debugging
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 659827a05..5c7dd9982 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -659,6 +659,19 @@ refresh_block (struct GNUNET_SERVER_Client *client, | |||
659 | struct GNUNET_GNSRECORD_Block *block; | 659 | struct GNUNET_GNSRECORD_Block *block; |
660 | struct CacheOperation *cop; | 660 | struct CacheOperation *cop; |
661 | struct GNUNET_CRYPTO_EcdsaPublicKey pkey; | 661 | struct GNUNET_CRYPTO_EcdsaPublicKey pkey; |
662 | struct GNUNET_GNSRECORD_Data *nick; | ||
663 | struct GNUNET_GNSRECORD_Data *res; | ||
664 | unsigned int res_count; | ||
665 | |||
666 | nick = get_nick_record (zone_key); | ||
667 | res_count = rd_count; | ||
668 | res = rd; | ||
669 | if (NULL != nick) | ||
670 | { | ||
671 | nick->flags = (nick->flags | GNUNET_GNSRECORD_RF_PRIVATE) ^ GNUNET_GNSRECORD_RF_PRIVATE; | ||
672 | merge_records (rd_count,rd, 1, nick, &res_count, &res); | ||
673 | GNUNET_free (nick); | ||
674 | } | ||
662 | 675 | ||
663 | if (0 == rd_count) | 676 | if (0 == rd_count) |
664 | block = GNUNET_GNSRECORD_block_create (zone_key, | 677 | block = GNUNET_GNSRECORD_block_create (zone_key, |