[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: [datastore] Fix performance
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: [datastore] Fix performance tests after API change |
Date: |
Tue, 28 Mar 2017 04:10:14 +0200 |
This is an automated email from the git hooks/post-receive script.
david-barksdale pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new b95646624 [datastore] Fix performance tests after API change
b95646624 is described below
commit b95646624c640ac3f1ed74d5474b090f46af745c
Author: David Barksdale <address@hidden>
AuthorDate: Mon Mar 27 21:07:32 2017 -0500
[datastore] Fix performance tests after API change
---
src/datastore/perf_datastore_api.c | 2 ++
src/datastore/perf_plugin_datastore.c | 33 ++++++++++++++++++---------------
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,
* @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;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: [datastore] Fix performance tests after API change,
gnunet <=