- fix in monitoring, documentation, style
authorBart Polot <bart@net.in.tum.de>
Fri, 1 Mar 2013 02:20:04 +0000 (02:20 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 1 Mar 2013 02:20:04 +0000 (02:20 +0000)
src/dht/gnunet-service-dht_neighbours.c
src/dht/gnunet-service-dht_routing.c

index 4872b58a535c545eef89cea5dec15b9a6c936f32..3fa5de71a7a8c15a6d10f1089379bcaab65e46ec 100644 (file)
@@ -1644,17 +1644,18 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer,
                                GNUNET_TIME_absolute_ntoh (put->expiration_time),
                                ntohl (put->hop_count), bf, &put->key, putlen,
                                pp, payload, payload_size);
+    /* notify monitoring clients */
+    GDS_CLIENTS_process_put (options,
+                             ntohl (put->type),
+                             ntohl (put->hop_count),
+                             ntohl (put->desired_replication_level),
+                             putlen, pp,
+                             GNUNET_TIME_absolute_ntoh (put->expiration_time),
+                             &put->key,
+                             payload,
+                             payload_size);
   }
   GNUNET_CONTAINER_bloomfilter_free (bf);
-  GDS_CLIENTS_process_put (options,
-                           ntohl (put->type),
-                           ntohl (put->hop_count),
-                           ntohl (put->desired_replication_level),
-                           putlen, put_path,
-                           GNUNET_TIME_absolute_ntoh (put->expiration_time),
-                           &put->key,
-                           payload,
-                           payload_size);
   return GNUNET_YES;
 }
 
@@ -1869,9 +1870,6 @@ handle_dht_p2p_get (void *cls, const struct GNUNET_PeerIdentity *peer,
     GNUNET_free (tmp);
   }
 
-
-
-  /* FIXME Path */
   GDS_CLIENTS_process_get (options,
                            type,
                            ntohl(get->hop_count),
index 2d0d77876095b30768c8fd101818c951708c5d32..efcdf0e145f65f0614ff7ffb7fab958f99ebca4d 100644 (file)
@@ -264,7 +264,7 @@ process (void *cls, const struct GNUNET_HashCode * key, void *value)
  * @param key key for the content
  * @param put_path_length number of entries in put_path
  * @param put_path peers the original PUT traversed (if tracked)
- * @param get_path_length number of entries in put_path
+ * @param get_path_length number of entries in get_path
  * @param get_path peers this reply has traversed so far (if tracked)
  * @param data payload of the reply
  * @param data_size number of bytes in data