guix-env: some update.
[oweals/gnunet.git] / src / datastore / perf_plugin_datastore.c
index 1e43b74b49f5ffbea8b99215a204e107efb1eef5..d6f44bf9fd53f47cac6143756f74887ad77bb298 100644 (file)
@@ -181,8 +181,14 @@ do_put (struct CpsRunContext *crc)
   value[0] = crc->i;
   GNUNET_memcpy (&value[4], &i, sizeof (i));
   prio = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 100);
-  crc->api->put (crc->api->cls, &key, size, value, 1 + i % 4 /* type */ ,
-                 prio, i % 4 /* anonymity */ ,
+  crc->api->put (crc->api->cls,
+                 &key,
+                 false /* absent */,
+                 size,
+                 value,
+                 1 + i % 4 /* type */ ,
+                 prio,
+                 i % 4 /* anonymity */ ,
                  0 /* replication */ ,
                  GNUNET_TIME_relative_to_absolute
                  (GNUNET_TIME_relative_multiply
@@ -190,20 +196,22 @@ do_put (struct CpsRunContext *crc)
                     60 * 60 * 60 * 1000 +
                     GNUNET_CRYPTO_random_u32
                       (GNUNET_CRYPTO_QUALITY_WEAK, 1000))),
-                 put_continuation, crc);
+                 put_continuation,
+                 crc);
   i++;
 }
 
 
 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 +261,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 +314,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;