aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-16 17:34:18 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-16 17:34:18 +0000
commit0b92336e16fd941ec085c66579486244c6bd83f4 (patch)
treebbb47f96c7bba867018003de148654fd8ca0eab5 /src/fs/gnunet-service-fs.c
parentf1cc760d1c98e2738430ad24d8004c5c700c1c49 (diff)
downloadgnunet-0b92336e16fd941ec085c66579486244c6bd83f4.tar.gz
gnunet-0b92336e16fd941ec085c66579486244c6bd83f4.zip
do not poll empty database every 100ms for migration, doxygen fixes, code cleanup
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r--src/fs/gnunet-service-fs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index 7a4b9acef..4a70b518d 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -220,9 +220,9 @@ GSF_update_datastore_delay_ (struct GNUNET_TIME_Absolute start)
220 * all. 220 * all.
221 * 221 *
222 * @param priority priority of the request (used as a reference point to compare with the load) 222 * @param priority priority of the request (used as a reference point to compare with the load)
223 * @return GNUNET_YES if the load is too high to do anything (load high) 223 * @return #GNUNET_YES if the load is too high to do anything (load high)
224 * GNUNET_NO to process normally (load normal) 224 * #GNUNET_NO to process normally (load normal)
225 * GNUNET_SYSERR to process for free (load low) 225 * #GNUNET_SYSERR to process for free (load low)
226 */ 226 */
227int 227int
228GSF_test_get_load_too_high_ (uint32_t priority) 228GSF_test_get_load_too_high_ (uint32_t priority)
@@ -248,7 +248,7 @@ GSF_test_get_load_too_high_ (uint32_t priority)
248 * @param bandwidth_out assigned outbound bandwidth for the connection 248 * @param bandwidth_out assigned outbound bandwidth for the connection
249 * @param bandwidth_in assigned inbound bandwidth for the connection 249 * @param bandwidth_in assigned inbound bandwidth for the connection
250 * @param ats performance data for the address (as far as known) 250 * @param ats performance data for the address (as far as known)
251 * @param ats_count number of performance records in 'ats' 251 * @param ats_count number of performance records in @a ats
252 */ 252 */
253static void 253static void
254update_latencies (void *cls, 254update_latencies (void *cls,
@@ -306,6 +306,9 @@ handle_p2p_put (void *cls,
306{ 306{
307 struct GSF_ConnectedPeer *cp; 307 struct GSF_ConnectedPeer *cp;
308 308
309 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
310 "Received P2P PUT from %s\n",
311 GNUNET_i2s (other));
309 cp = GSF_peer_get_ (other); 312 cp = GSF_peer_get_ (other);
310 if (NULL == cp) 313 if (NULL == cp)
311 { 314 {
@@ -321,7 +324,7 @@ handle_p2p_put (void *cls,
321 * We have a new request, consider forwarding it to the given 324 * We have a new request, consider forwarding it to the given
322 * peer. 325 * peer.
323 * 326 *
324 * @param cls the 'struct GSF_PendingRequest' 327 * @param cls the `struct GSF_PendingRequest`
325 * @param peer identity of the peer 328 * @param peer identity of the peer
326 * @param cp handle to the connected peer record 329 * @param cp handle to the connected peer record
327 * @param ppd peer performance data 330 * @param ppd peer performance data