[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/02: misc bugfixes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/02: misc bugfixes |
Date: |
Thu, 26 Apr 2018 16:40:13 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 1b21e0b643f37675683b09b9e528721cb7df74e5
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Apr 26 15:39:50 2018 +0200
misc bugfixes
---
src/gnsrecord/gnsrecord_crypto.c | 2 +-
src/namestore/gnunet-zoneimport.c | 15 ++++++++++-----
src/namestore/namestore_api.c | 3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index 27c83b90e..d9fe2ae40 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -236,7 +236,7 @@ GNUNET_GNSRECORD_block_create2 (const struct
GNUNET_CRYPTO_EcdsaPrivateKey *key,
static struct KeyCacheLine cache[CSIZE];
struct KeyCacheLine *line;
- line = &cache[(*(unsigned int *) key) ^ CSIZE];
+ line = &cache[(*(unsigned int *) key) % CSIZE];
if (0 != memcmp (&line->key,
key,
sizeof (*key)))
diff --git a/src/namestore/gnunet-zoneimport.c
b/src/namestore/gnunet-zoneimport.c
index 779df695b..6622a7676 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -1438,7 +1438,6 @@ queue (const char *hostname)
return;
}
- pending++;
hlen = strlen (hostname) + 1;
req = GNUNET_malloc (sizeof (struct Request) + hlen);
req->zone = zone;
@@ -1503,7 +1502,13 @@ iterate_zones (void *cls)
static struct Zone *last;
(void) cls;
- zone_it = NULL;
+ if (NULL != zone_it)
+ {
+ zone_it = NULL;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Finished iteration over zone `%s'!\n",
+ last->domain);
+ }
GNUNET_assert (NULL != zone_tail);
if (zone_tail == last)
{
@@ -1515,15 +1520,15 @@ iterate_zones (void *cls)
NULL);
GNUNET_CONTAINER_multihashmap_destroy (ns_pending);
ns_pending = NULL;
- GNUNET_assert (NULL == t);
- t = GNUNET_SCHEDULER_add_now (&process_queue,
- NULL);
return;
}
if (NULL == last)
last = zone_head;
else
last = last->next;
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Starting iteration over zone `%s'!\n",
+ last->domain);
ns_iterator_trigger_next = 1;
zone_it = GNUNET_NAMESTORE_zone_iteration_start (ns,
&last->key,
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 65d3d75d0..ab356838b 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -1293,7 +1293,8 @@ GNUNET_NAMESTORE_zone_iterator_next (struct
GNUNET_NAMESTORE_ZoneIterator *it,
struct GNUNET_MQ_Envelope *env;
LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Sending ZONE_ITERATION_NEXT message\n");
+ "Sending ZONE_ITERATION_NEXT message with limit %llu\n",
+ (unsigned long long) limit);
env = GNUNET_MQ_msg (msg,
GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT);
msg->gns_header.r_id = htonl (it->op_id);
--
To stop receiving notification emails like this one, please contact
address@hidden