From bdd57a279ff49221288b0b326c926d10224b4716 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 1 Mar 2010 17:41:07 +0000 Subject: [PATCH] debugging --- src/fs/gnunet-service-fs.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 06d949e2e..d2118ebb8 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -1696,7 +1696,8 @@ process_reply (void *cls, #if DEBUG_FS GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Matched result for query `%s' with pending request\n", + "Matched result (type %u) for query `%s' with pending request\n", + (unsigned int) prq->type, GNUNET_h2s (key)); #endif do_remove = GNUNET_NO; @@ -1818,10 +1819,18 @@ process_reply (void *cls, add_to_pending_messages_for_peer (cp, reply, pr); } if (GNUNET_YES == do_remove) - GNUNET_break (GNUNET_YES == - GNUNET_CONTAINER_multihashmap_remove (query_request_map, - key, - pr)); + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Removing request `%s' from request map (has been satisfied)\n", + GNUNET_h2s (key)); + GNUNET_break (GNUNET_YES == + GNUNET_CONTAINER_multihashmap_remove (query_request_map, + key, + pr)); + // FIXME: request somehow does not fully + // disappear; how to fix? + // destroy_pending_request (pr); (not like this!) + } // FIXME: implement hot-path routing statistics keeping! return GNUNET_YES; -- 2.25.1