aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_plugin_datastore.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/datastore/test_plugin_datastore.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/datastore/test_plugin_datastore.c')
-rw-r--r--src/datastore/test_plugin_datastore.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c
index 94d93aac6..1867d6755 100644
--- a/src/datastore/test_plugin_datastore.c
+++ b/src/datastore/test_plugin_datastore.c
@@ -193,6 +193,7 @@ iterate_one_shot (void *cls,
193 enum GNUNET_BLOCK_Type type, 193 enum GNUNET_BLOCK_Type type,
194 uint32_t priority, 194 uint32_t priority,
195 uint32_t anonymity, 195 uint32_t anonymity,
196 uint32_t replication,
196 struct GNUNET_TIME_Absolute expiration, 197 struct GNUNET_TIME_Absolute expiration,
197 uint64_t uid) 198 uint64_t uid)
198{ 199{
@@ -317,11 +318,12 @@ test (void *cls)
317 break; 318 break;
318 case RP_UPDATE: 319 case RP_UPDATE:
319 crc->api->update (crc->api->cls, 320 crc->api->update (crc->api->cls,
320 guid, 321 guid,
321 1, 322 1,
322 GNUNET_TIME_UNIT_ZERO_ABS, 323 1,
324 GNUNET_TIME_UNIT_ZERO_ABS,
323 &update_continuation, 325 &update_continuation,
324 crc); 326 crc);
325 break; 327 break;
326 328
327 case RP_ITER_ZERO: 329 case RP_ITER_ZERO: