aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/perf_namestore_api_zone_iteration.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/perf_namestore_api_zone_iteration.c')
-rw-r--r--src/namestore/perf_namestore_api_zone_iteration.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/namestore/perf_namestore_api_zone_iteration.c b/src/namestore/perf_namestore_api_zone_iteration.c
index 55d6fafa0..e73c61ea2 100644
--- a/src/namestore/perf_namestore_api_zone_iteration.c
+++ b/src/namestore/perf_namestore_api_zone_iteration.c
@@ -26,6 +26,9 @@
26#include "gnunet_namestore_service.h" 26#include "gnunet_namestore_service.h"
27#include "gnunet_testing_lib.h" 27#include "gnunet_testing_lib.h"
28#include "namestore.h" 28#include "namestore.h"
29#include "gnunet_dnsparser_lib.h"
30
31#define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT
29 32
30/** 33/**
31 * A #BENCHMARK_SIZE of 1000 takes less than a minute on a reasonably 34 * A #BENCHMARK_SIZE of 1000 takes less than a minute on a reasonably
@@ -141,7 +144,7 @@ create_record (unsigned int count)
141 144
142 rd = GNUNET_malloc (count + sizeof (struct GNUNET_GNSRECORD_Data)); 145 rd = GNUNET_malloc (count + sizeof (struct GNUNET_GNSRECORD_Data));
143 rd->expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; 146 rd->expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
144 rd->record_type = count; 147 rd->record_type = TEST_RECORD_TYPE;
145 rd->data_size = count; 148 rd->data_size = count;
146 rd->data = (void *) &rd[1]; 149 rd->data = (void *) &rd[1];
147 rd->flags = 0; 150 rd->flags = 0;