diff options
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index be2bc477b..07f856b23 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -226,27 +226,29 @@ run_continuation (void *cls, | |||
226 | if (i > 255) | 226 | if (i > 255) |
227 | memset (data, i - 255, size / 2); | 227 | memset (data, i - 255, size / 2); |
228 | data[0] = k; | 228 | data[0] = k; |
229 | GNUNET_DATASTORE_put (datastore, | 229 | GNUNET_assert (NULL != |
230 | 0, | 230 | GNUNET_DATASTORE_put (datastore, |
231 | &key, | 231 | 0, |
232 | size, | 232 | &key, |
233 | data, | 233 | size, |
234 | i+1, | 234 | data, |
235 | GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 100), | 235 | i+1, |
236 | i, 0, | 236 | GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 100), |
237 | GNUNET_TIME_relative_to_absolute | 237 | i, 0, |
238 | (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, | 238 | GNUNET_TIME_relative_to_absolute |
239 | GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 1000))), | 239 | (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, |
240 | 1, 1, TIMEOUT, | 240 | GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 1000))), |
241 | &check_success, | 241 | 1, 1, TIMEOUT, |
242 | crc); | 242 | &check_success, |
243 | crc)); | ||
243 | break; | 244 | break; |
244 | case RP_CUT: | 245 | case RP_CUT: |
245 | /* trim down below MAX_SIZE again */ | 246 | /* trim down below MAX_SIZE again */ |
246 | GNUNET_DATASTORE_get_for_replication (datastore, | 247 | GNUNET_assert (NULL != |
247 | 1, 1, TIMEOUT, | 248 | GNUNET_DATASTORE_get_for_replication (datastore, |
248 | &delete_value, | 249 | 1, 1, TIMEOUT, |
249 | crc); | 250 | &delete_value, |
251 | crc)); | ||
250 | break; | 252 | break; |
251 | case RP_REPORT: | 253 | case RP_REPORT: |
252 | printf ( | 254 | printf ( |