diff options
author | David Barksdale <amatus@amat.us> | 2017-03-22 22:17:05 -0500 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-03-22 22:19:13 -0500 |
commit | 78ecfccd774a77ae3d7a51e3f5c7c7c86cf7985b (patch) | |
tree | 1dc23a2f6d78c8026e69181ac90055929d79bba8 /src/fs/gnunet-service-fs_indexing.c | |
parent | aa98f144e6db0da5a0a4cad83fe64a80bbab6692 (diff) | |
download | gnunet-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_indexing.c')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index ce6bcec41..b5e8af95f 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c | |||
@@ -266,6 +266,7 @@ remove_cont (void *cls, int success, | |||
266 | * @param type type of the content | 266 | * @param type type of the content |
267 | * @param priority priority of the content | 267 | * @param priority priority of the content |
268 | * @param anonymity anonymity-level for the content | 268 | * @param anonymity anonymity-level for the content |
269 | * @param replication replication-level for the content | ||
269 | * @param expiration expiration time for the content | 270 | * @param expiration expiration time for the content |
270 | * @param uid unique identifier for the datum; | 271 | * @param uid unique identifier for the datum; |
271 | * maybe 0 if no unique identifier is available | 272 | * maybe 0 if no unique identifier is available |
@@ -280,6 +281,7 @@ GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, | |||
280 | enum GNUNET_BLOCK_Type type, | 281 | enum GNUNET_BLOCK_Type type, |
281 | uint32_t priority, | 282 | uint32_t priority, |
282 | uint32_t anonymity, | 283 | uint32_t anonymity, |
284 | uint32_t replication, | ||
283 | struct GNUNET_TIME_Absolute expiration, | 285 | struct GNUNET_TIME_Absolute expiration, |
284 | uint64_t uid, | 286 | uint64_t uid, |
285 | GNUNET_DATASTORE_DatumProcessor cont, | 287 | GNUNET_DATASTORE_DatumProcessor cont, |
@@ -412,6 +414,7 @@ GNUNET_FS_handle_on_demand_block (const struct GNUNET_HashCode * key, | |||
412 | GNUNET_BLOCK_TYPE_FS_DBLOCK, | 414 | GNUNET_BLOCK_TYPE_FS_DBLOCK, |
413 | priority, | 415 | priority, |
414 | anonymity, | 416 | anonymity, |
417 | replication, | ||
415 | expiration, | 418 | expiration, |
416 | uid); | 419 | uid); |
417 | return GNUNET_OK; | 420 | return GNUNET_OK; |