aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_push.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-15 13:37:44 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-15 13:37:44 +0000
commitc387d97879b2a78125a58e86d5bae07593389e69 (patch)
tree0f43cec256b23eebbc549bef9aa999e8b4ff4c3e /src/fs/gnunet-service-fs_push.c
parent72f3388f4a40a48d421a5e3b568f2cd17b399aac (diff)
downloadgnunet-c387d97879b2a78125a58e86d5bae07593389e69.tar.gz
gnunet-c387d97879b2a78125a58e86d5bae07593389e69.zip
fix
Diffstat (limited to 'src/fs/gnunet-service-fs_push.c')
-rw-r--r--src/fs/gnunet-service-fs_push.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c
index 28406085b..da781bc07 100644
--- a/src/fs/gnunet-service-fs_push.c
+++ b/src/fs/gnunet-service-fs_push.c
@@ -372,9 +372,10 @@ find_content (struct MigrationReadyPeer *mrp)
372 } 372 }
373 pos = pos->next; 373 pos = pos->next;
374 } 374 }
375 if ( (NULL == best) && 375 if (NULL == best)
376 (mig_size >= MAX_MIGRATION_QUEUE) )
377 { 376 {
377 if (mig_size < MAX_MIGRATION_QUEUE)
378 return; /* will fill up eventually... */
378 /* failed to find migration target AND 379 /* failed to find migration target AND
379 queue is full, purge most-forwarded 380 queue is full, purge most-forwarded
380 block from queue to make room for more */ 381 block from queue to make room for more */