[datastore] Fix performance tests after API change
authorDavid Barksdale <amatus@amat.us>
Tue, 28 Mar 2017 02:07:32 +0000 (21:07 -0500)
committerDavid Barksdale <amatus@amat.us>
Tue, 28 Mar 2017 02:09:59 +0000 (21:09 -0500)
src/datastore/perf_datastore_api.c
src/datastore/perf_plugin_datastore.c

index 4f1f99a5c8936f21991ee02d92e3e9c80ce0cf46..10d9cf72e8ce7ceecb203525ea12465169074354 100644 (file)
@@ -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)
 {
index 1e43b74b49f5ffbea8b99215a204e107efb1eef5..2f9502989313122cbf16860760cc9e3b6109a92b 100644 (file)
@@ -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;