summaryrefslogtreecommitdiffstats
path: root/bench
diff options
context:
space:
mode:
authorGrigorii Demidov <grigorii.demidov@nic.cz>2018-03-12 12:02:18 +0100
committerPetr Špaček <petr.spacek@nic.cz>2018-03-28 11:15:23 +0200
commitecdfbe7e99f43f2312018344a37bc58c7b287c22 (patch)
treeb183725116731fe3ae12d8c981ede53612092f25 /bench
parentlib/nsrep: don't mark NS as 'timeouted' immediately, but after two retries (diff)
downloadknot-resolver-ecdfbe7e99f43f2312018344a37bc58c7b287c22.tar.xz
knot-resolver-ecdfbe7e99f43f2312018344a37bc58c7b287c22.zip
lib/nsrep: when timeout occurs and NS has no cached RTT yet, don't mark it as timeouted
Diffstat (limited to 'bench')
-rw-r--r--bench/bench_lru.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/bench_lru.c b/bench/bench_lru.c
index 9c850dc7..63bbeebd 100644
--- a/bench/bench_lru.c
+++ b/bench/bench_lru.c
@@ -212,7 +212,7 @@ int main(int argc, char ** argv)
p_err("\nload everything:\t");
time_get(&time);
for (size_t i = 0, ki = key_count - 1; i < run_count; ++i, --ki) {
- unsigned *r = lru_get_new(lru, keys[ki].chars, keys[ki].len);
+ unsigned *r = lru_get_new(lru, keys[ki].chars, keys[ki].len, NULL);
if (!r || *r == 0)
++miss;
if (r)