diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-10-06 10:02:16 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-10-06 10:02:16 +0000 |
commit | 7fb21027ff8726fec229ef0a55b84263be0c18d0 (patch) | |
tree | 2c080a875b6788c1e35bd77a80371b8f66e9816f /src | |
parent | 7671f5631189a466fe35ebaeeffb8312ab696794 (diff) | |
download | gnunet-7fb21027ff8726fec229ef0a55b84263be0c18d0.tar.gz gnunet-7fb21027ff8726fec229ef0a55b84263be0c18d0.zip |
dht service bug, reduce debug level
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/dht.h | 2 | ||||
-rw-r--r-- | src/dht/gnunet-service-dht.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index b5006ab8c..0f9d28fe4 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #ifndef DHT_H_ | 27 | #ifndef DHT_H_ |
28 | #define DHT_H_ | 28 | #define DHT_H_ |
29 | 29 | ||
30 | #define DEBUG_DHT GNUNET_YES | 30 | #define DEBUG_DHT GNUNET_NO |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * Needs to be GNUNET_YES for logging to dhtlog to work! | 33 | * Needs to be GNUNET_YES for logging to dhtlog to work! |
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index d722f3335..0ba700f9b 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c | |||
@@ -2380,7 +2380,7 @@ remove_recent_find_peer(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc | |||
2380 | { | 2380 | { |
2381 | GNUNET_HashCode *key = cls; | 2381 | GNUNET_HashCode *key = cls; |
2382 | 2382 | ||
2383 | GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(recent_find_peer_requests, key, key)); | 2383 | GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(recent_find_peer_requests, key, NULL)); |
2384 | GNUNET_free (key); | 2384 | GNUNET_free (key); |
2385 | } | 2385 | } |
2386 | 2386 | ||
@@ -2509,6 +2509,7 @@ handle_dht_find_peer (void *cls, | |||
2509 | &message_context->key, NULL, | 2509 | &message_context->key, NULL, |
2510 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)) | 2510 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)) |
2511 | { | 2511 | { |
2512 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Adding recent remove task for key `%s`!\n", GNUNET_h2s(&message_context->key)); | ||
2512 | /* Only add a task if there wasn't one for this key already! */ | 2513 | /* Only add a task if there wasn't one for this key already! */ |
2513 | GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), | 2514 | GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), |
2514 | &remove_recent_find_peer, recent_hash); | 2515 | &remove_recent_find_peer, recent_hash); |