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/datastore/test_datastore_api_management.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/datastore/test_datastore_api_management.c')
-rw-r--r-- | src/datastore/test_datastore_api_management.c | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c index de4dc657f..e50b98909 100644 --- a/src/datastore/test_datastore_api_management.c +++ b/src/datastore/test_datastore_api_management.c | |||
@@ -137,9 +137,15 @@ check_success (void *cls, int success, struct GNUNET_TIME_Absolute min_expiratio | |||
137 | 137 | ||
138 | 138 | ||
139 | static void | 139 | static void |
140 | check_value (void *cls, const struct GNUNET_HashCode * key, size_t size, | 140 | check_value (void *cls, |
141 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, | 141 | const struct GNUNET_HashCode *key, |
142 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, | 142 | size_t size, |
143 | const void *data, | ||
144 | enum GNUNET_BLOCK_Type type, | ||
145 | uint32_t priority, | ||
146 | uint32_t anonymity, | ||
147 | uint32_t replication, | ||
148 | struct GNUNET_TIME_Absolute expiration, | ||
143 | uint64_t uid) | 149 | uint64_t uid) |
144 | { | 150 | { |
145 | struct CpsRunContext *crc = cls; | 151 | struct CpsRunContext *crc = cls; |
@@ -166,9 +172,15 @@ check_value (void *cls, const struct GNUNET_HashCode * key, size_t size, | |||
166 | 172 | ||
167 | 173 | ||
168 | static void | 174 | static void |
169 | check_nothing (void *cls, const struct GNUNET_HashCode * key, size_t size, | 175 | check_nothing (void *cls, |
170 | const void *data, enum GNUNET_BLOCK_Type type, uint32_t priority, | 176 | const struct GNUNET_HashCode *key, |
171 | uint32_t anonymity, struct GNUNET_TIME_Absolute expiration, | 177 | size_t size, |
178 | const void *data, | ||
179 | enum GNUNET_BLOCK_Type type, | ||
180 | uint32_t priority, | ||
181 | uint32_t anonymity, | ||
182 | uint32_t replication, | ||
183 | struct GNUNET_TIME_Absolute expiration, | ||
172 | uint64_t uid) | 184 | uint64_t uid) |
173 | { | 185 | { |
174 | struct CpsRunContext *crc = cls; | 186 | struct CpsRunContext *crc = cls; |