aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-03-27 21:07:32 -0500
committerDavid Barksdale <amatus@amat.us>2017-03-27 21:09:59 -0500
commitb95646624c640ac3f1ed74d5474b090f46af745c (patch)
treeea2a1da8e21ea2112f612674ac378bf0c9e8b574 /src/datastore
parentd486f5da0f495d817a19efd077501c25e4eef6fa (diff)
downloadgnunet-b95646624c640ac3f1ed74d5474b090f46af745c.tar.gz
gnunet-b95646624c640ac3f1ed74d5474b090f46af745c.zip
[datastore] Fix performance tests after API change
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/perf_datastore_api.c2
-rw-r--r--src/datastore/perf_plugin_datastore.c33
2 files changed, 20 insertions, 15 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c
index 4f1f99a5c..10d9cf72e 100644
--- a/src/datastore/perf_datastore_api.c
+++ b/src/datastore/perf_datastore_api.c
@@ -303,6 +303,7 @@ remove_next (void *cls,
303 * @param type type of the content 303 * @param type type of the content
304 * @param priority priority of the content 304 * @param priority priority of the content
305 * @param anonymity anonymity-level for the content 305 * @param anonymity anonymity-level for the content
306 * @param replication replication-level for the content
306 * @param expiration expiration time for the content 307 * @param expiration expiration time for the content
307 * @param uid unique identifier for the datum; 308 * @param uid unique identifier for the datum;
308 * maybe 0 if no unique identifier is available 309 * maybe 0 if no unique identifier is available
@@ -315,6 +316,7 @@ delete_value (void *cls,
315 enum GNUNET_BLOCK_Type type, 316 enum GNUNET_BLOCK_Type type,
316 uint32_t priority, 317 uint32_t priority,
317 uint32_t anonymity, 318 uint32_t anonymity,
319 uint32_t replication,
318 struct GNUNET_TIME_Absolute expiration, 320 struct GNUNET_TIME_Absolute expiration,
319 uint64_t uid) 321 uint64_t uid)
320{ 322{
diff --git a/src/datastore/perf_plugin_datastore.c b/src/datastore/perf_plugin_datastore.c
index 1e43b74b4..2f9502989 100644
--- a/src/datastore/perf_plugin_datastore.c
+++ b/src/datastore/perf_plugin_datastore.c
@@ -197,13 +197,14 @@ do_put (struct CpsRunContext *crc)
197 197
198static int 198static int
199iterate_zeros (void *cls, 199iterate_zeros (void *cls,
200 const struct GNUNET_HashCode *key, 200 const struct GNUNET_HashCode *key,
201 uint32_t size, 201 uint32_t size,
202 const void *data, 202 const void *data,
203 enum GNUNET_BLOCK_Type type, 203 enum GNUNET_BLOCK_Type type,
204 uint32_t priority, 204 uint32_t priority,
205 uint32_t anonymity, 205 uint32_t anonymity,
206 struct GNUNET_TIME_Absolute expiration, 206 uint32_t replication,
207 struct GNUNET_TIME_Absolute expiration,
207 uint64_t uid) 208 uint64_t uid)
208{ 209{
209 struct CpsRunContext *crc = cls; 210 struct CpsRunContext *crc = cls;
@@ -253,14 +254,15 @@ iterate_zeros (void *cls,
253 254
254static int 255static int
255expiration_get (void *cls, 256expiration_get (void *cls,
256 const struct GNUNET_HashCode *key, 257 const struct GNUNET_HashCode *key,
257 uint32_t size, 258 uint32_t size,
258 const void *data, 259 const void *data,
259 enum GNUNET_BLOCK_Type type, 260 enum GNUNET_BLOCK_Type type,
260 uint32_t priority, 261 uint32_t priority,
261 uint32_t anonymity, 262 uint32_t anonymity,
263 uint32_t replication,
262 struct GNUNET_TIME_Absolute expiration, 264 struct GNUNET_TIME_Absolute expiration,
263 uint64_t uid) 265 uint64_t uid)
264{ 266{
265 struct CpsRunContext *crc = cls; 267 struct CpsRunContext *crc = cls;
266 int i; 268 int i;
@@ -305,14 +307,15 @@ expiration_get (void *cls,
305 307
306static int 308static int
307replication_get (void *cls, 309replication_get (void *cls,
308 const struct GNUNET_HashCode *key, 310 const struct GNUNET_HashCode *key,
309 uint32_t size, 311 uint32_t size,
310 const void *data, 312 const void *data,
311 enum GNUNET_BLOCK_Type type, 313 enum GNUNET_BLOCK_Type type,
312 uint32_t priority, 314 uint32_t priority,
313 uint32_t anonymity, 315 uint32_t anonymity,
316 uint32_t replication,
314 struct GNUNET_TIME_Absolute expiration, 317 struct GNUNET_TIME_Absolute expiration,
315 uint64_t uid) 318 uint64_t uid)
316{ 319{
317 struct CpsRunContext *crc = cls; 320 struct CpsRunContext *crc = cls;
318 int i; 321 int i;