diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-01 17:41:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-01 17:41:07 +0000 |
commit | bdd57a279ff49221288b0b326c926d10224b4716 (patch) | |
tree | b62f409a8a21f689cbcaf19754ef1f458666f882 /src | |
parent | a398a70c4ecad6d37bf7ac009bd4b7d2bdecdbfb (diff) | |
download | gnunet-bdd57a279ff49221288b0b326c926d10224b4716.tar.gz gnunet-bdd57a279ff49221288b0b326c926d10224b4716.zip |
debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/gnunet-service-fs.c | 19 |
1 files 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, | |||
1696 | 1696 | ||
1697 | #if DEBUG_FS | 1697 | #if DEBUG_FS |
1698 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1698 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1699 | "Matched result for query `%s' with pending request\n", | 1699 | "Matched result (type %u) for query `%s' with pending request\n", |
1700 | (unsigned int) prq->type, | ||
1700 | GNUNET_h2s (key)); | 1701 | GNUNET_h2s (key)); |
1701 | #endif | 1702 | #endif |
1702 | do_remove = GNUNET_NO; | 1703 | do_remove = GNUNET_NO; |
@@ -1818,10 +1819,18 @@ process_reply (void *cls, | |||
1818 | add_to_pending_messages_for_peer (cp, reply, pr); | 1819 | add_to_pending_messages_for_peer (cp, reply, pr); |
1819 | } | 1820 | } |
1820 | if (GNUNET_YES == do_remove) | 1821 | if (GNUNET_YES == do_remove) |
1821 | GNUNET_break (GNUNET_YES == | 1822 | { |
1822 | GNUNET_CONTAINER_multihashmap_remove (query_request_map, | 1823 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1823 | key, | 1824 | "Removing request `%s' from request map (has been satisfied)\n", |
1824 | pr)); | 1825 | GNUNET_h2s (key)); |
1826 | GNUNET_break (GNUNET_YES == | ||
1827 | GNUNET_CONTAINER_multihashmap_remove (query_request_map, | ||
1828 | key, | ||
1829 | pr)); | ||
1830 | // FIXME: request somehow does not fully | ||
1831 | // disappear; how to fix? | ||
1832 | // destroy_pending_request (pr); (not like this!) | ||
1833 | } | ||
1825 | 1834 | ||
1826 | // FIXME: implement hot-path routing statistics keeping! | 1835 | // FIXME: implement hot-path routing statistics keeping! |
1827 | return GNUNET_YES; | 1836 | return GNUNET_YES; |