diff options
Diffstat (limited to 'src/fs/gnunet-service-fs_push.c')
-rw-r--r-- | src/fs/gnunet-service-fs_push.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c index 515446117..4fde823a1 100644 --- a/src/fs/gnunet-service-fs_push.c +++ b/src/fs/gnunet-service-fs_push.c | |||
@@ -34,6 +34,17 @@ | |||
34 | #define DEBUG_FS_MIGRATION GNUNET_EXTRA_LOGGING | 34 | #define DEBUG_FS_MIGRATION GNUNET_EXTRA_LOGGING |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Maximum number of blocks we keep in memory for migration. | ||
38 | */ | ||
39 | #define MAX_MIGRATION_QUEUE 8 | ||
40 | |||
41 | /** | ||
42 | * Blocks are at most migrated to this number of peers | ||
43 | * plus one, each time they are fetched from the database. | ||
44 | */ | ||
45 | #define MIGRATION_LIST_SIZE 2 | ||
46 | |||
47 | /** | ||
37 | * How long must content remain valid for us to consider it for migration? | 48 | * How long must content remain valid for us to consider it for migration? |
38 | * If content will expire too soon, there is clearly no point in pushing | 49 | * If content will expire too soon, there is clearly no point in pushing |
39 | * it to other peers. This value gives the threshold for migration. Note | 50 | * it to other peers. This value gives the threshold for migration. Note |