aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_push.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-03-22 22:17:05 -0500
committerDavid Barksdale <amatus@amat.us>2017-03-22 22:19:13 -0500
commit78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b (patch)
tree1dc23a2f6d78c8026e69181ac90055929d79bba8 /src/fs/gnunet-service-fs_push.c
parentaa98f144e6db0da5a0a4cad83fe64a80bbab6692 (diff)
downloadgnunet-78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b.tar.gz
gnunet-78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b.zip
[datastore] Return and update replication
This fixes a couple FIXMEs in the datastore code. The replication value is now returned from the datastore and the update function can increase the replication.
Diffstat (limited to 'src/fs/gnunet-service-fs_push.c')
-rw-r--r--src/fs/gnunet-service-fs_push.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c
index 361d30755..21c598a72 100644
--- a/src/fs/gnunet-service-fs_push.c
+++ b/src/fs/gnunet-service-fs_push.c
@@ -448,6 +448,7 @@ consider_gathering ()
448 * @param type type of the content 448 * @param type type of the content
449 * @param priority priority of the content 449 * @param priority priority of the content
450 * @param anonymity anonymity-level for the content 450 * @param anonymity anonymity-level for the content
451 * @param replication replication-level for the content
451 * @param expiration expiration time for the content 452 * @param expiration expiration time for the content
452 * @param uid unique identifier for the datum; 453 * @param uid unique identifier for the datum;
453 * maybe 0 if no unique identifier is available 454 * maybe 0 if no unique identifier is available
@@ -460,6 +461,7 @@ process_migration_content (void *cls,
460 enum GNUNET_BLOCK_Type type, 461 enum GNUNET_BLOCK_Type type,
461 uint32_t priority, 462 uint32_t priority,
462 uint32_t anonymity, 463 uint32_t anonymity,
464 uint32_t replication,
463 struct GNUNET_TIME_Absolute expiration, 465 struct GNUNET_TIME_Absolute expiration,
464 uint64_t uid) 466 uint64_t uid)
465{ 467{
@@ -491,9 +493,11 @@ process_migration_content (void *cls,
491 type, 493 type,
492 priority, 494 priority,
493 anonymity, 495 anonymity,
496 replication,
494 expiration, 497 expiration,
495 uid, 498 uid,
496 &process_migration_content, NULL)) 499 &process_migration_content,
500 NULL))
497 consider_gathering (); 501 consider_gathering ();
498 return; 502 return;
499 } 503 }