diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:01:19 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-22 16:01:19 +0100 |
commit | b5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab (patch) | |
tree | 5b378ee24a31f5ef00845c0681a0f95a28173273 /src/dht/gnunet-service-dht_routing.c | |
parent | 2b6c2c7dbae7977f3a28f19a9b4cc9e136b90ba5 (diff) | |
download | gnunet-b5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab.tar.gz gnunet-b5a1e1405a9d294e4b06b13da7b1cf6a3638f6ab.zip |
fix bug introduced with BLOCK change where we would eval a local reply twice and discard it as duplicate in the end
Diffstat (limited to 'src/dht/gnunet-service-dht_routing.c')
-rw-r--r-- | src/dht/gnunet-service-dht_routing.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c index 252995737..eebeedc22 100644 --- a/src/dht/gnunet-service-dht_routing.c +++ b/src/dht/gnunet-service-dht_routing.c | |||
@@ -209,6 +209,11 @@ process (void *cls, | |||
209 | rr->xquery_size, | 209 | rr->xquery_size, |
210 | pc->data, | 210 | pc->data, |
211 | pc->data_size); | 211 | pc->data_size); |
212 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
213 | "Result for %s of type %d was evaluated as %d\n", | ||
214 | GNUNET_h2s (key), | ||
215 | pc->type, | ||
216 | eval); | ||
212 | switch (eval) | 217 | switch (eval) |
213 | { | 218 | { |
214 | case GNUNET_BLOCK_EVALUATION_OK_MORE: | 219 | case GNUNET_BLOCK_EVALUATION_OK_MORE: |
@@ -271,6 +276,7 @@ process (void *cls, | |||
271 | * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching | 276 | * GDS_NEIGHBOURS_handle_reply for all peers that sent us a matching |
272 | * request recently. | 277 | * request recently. |
273 | * | 278 | * |
279 | * @param cls NULL (why have it?) | ||
274 | * @param type type of the block | 280 | * @param type type of the block |
275 | * @param expiration_time when does the content expire | 281 | * @param expiration_time when does the content expire |
276 | * @param key key for the content | 282 | * @param key key for the content |