From: David Barksdale Date: Tue, 28 Mar 2017 02:07:32 +0000 (-0500) Subject: [datastore] Fix performance tests after API change X-Git-Tag: gnunet-0.11.0rc0~279^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b95646624c640ac3f1ed74d5474b090f46af745c;p=oweals%2Fgnunet.git [datastore] Fix performance tests after API change --- 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, * @param type type of the content * @param priority priority of the content * @param anonymity anonymity-level for the content + * @param replication replication-level for the content * @param expiration expiration time for the content * @param uid unique identifier for the datum; * maybe 0 if no unique identifier is available @@ -315,6 +316,7 @@ delete_value (void *cls, enum GNUNET_BLOCK_Type type, uint32_t priority, uint32_t anonymity, + uint32_t replication, struct GNUNET_TIME_Absolute expiration, uint64_t uid) { 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) static int iterate_zeros (void *cls, - const struct GNUNET_HashCode *key, - uint32_t size, + const struct GNUNET_HashCode *key, + uint32_t size, const void *data, - enum GNUNET_BLOCK_Type type, - uint32_t priority, + enum GNUNET_BLOCK_Type type, + uint32_t priority, uint32_t anonymity, - struct GNUNET_TIME_Absolute expiration, + uint32_t replication, + struct GNUNET_TIME_Absolute expiration, uint64_t uid) { struct CpsRunContext *crc = cls; @@ -253,14 +254,15 @@ iterate_zeros (void *cls, static int expiration_get (void *cls, - const struct GNUNET_HashCode *key, - uint32_t size, + const struct GNUNET_HashCode *key, + uint32_t size, const void *data, - enum GNUNET_BLOCK_Type type, + enum GNUNET_BLOCK_Type type, uint32_t priority, - uint32_t anonymity, + uint32_t anonymity, + uint32_t replication, struct GNUNET_TIME_Absolute expiration, - uint64_t uid) + uint64_t uid) { struct CpsRunContext *crc = cls; int i; @@ -305,14 +307,15 @@ expiration_get (void *cls, static int replication_get (void *cls, - const struct GNUNET_HashCode *key, - uint32_t size, + const struct GNUNET_HashCode *key, + uint32_t size, const void *data, - enum GNUNET_BLOCK_Type type, + enum GNUNET_BLOCK_Type type, uint32_t priority, - uint32_t anonymity, + uint32_t anonymity, + uint32_t replication, struct GNUNET_TIME_Absolute expiration, - uint64_t uid) + uint64_t uid) { struct CpsRunContext *crc = cls; int i;