diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-15 09:38:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-15 09:38:48 +0000 |
commit | 0443654040fb277df95aae28a7b2a54a4f0a73bf (patch) | |
tree | 5f07e7fcf3409d1cb287ef5181b01f3584198acb /src/fs/gnunet-service-fs_push.c | |
parent | ca5418e74010c0034f7f24ad8a7a2ecb6e941af1 (diff) | |
download | gnunet-0443654040fb277df95aae28a7b2a54a4f0a73bf.tar.gz gnunet-0443654040fb277df95aae28a7b2a54a4f0a73bf.zip |
dead code elimination, splitting fs.h into fs.h and fs_api.h
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 |