diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-04-06 14:05:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-04-06 14:05:45 +0000 |
commit | 50ffbcc86ee995fa741860bcdd9546a231edf2a7 (patch) | |
tree | 25e23cae811f304253d6e7c4968cd26d370727f2 /src/datastore/perf_datastore_api.c | |
parent | bc4438c5af9b47e2bcd0195eb041e5fff8229428 (diff) | |
download | gnunet-50ffbcc86ee995fa741860bcdd9546a231edf2a7.tar.gz gnunet-50ffbcc86ee995fa741860bcdd9546a231edf2a7.zip |
fixc
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 ( |