test: disable failcache

This commit is contained in:
Witold Kręcicki
2020-01-23 11:44:26 +01:00
parent de5a7b4693
commit 5f62d29f32
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -871,7 +871,7 @@ ns_client_error(ns_client_t *client, isc_result_t result) {
/*
* SERVFAIL caching: store qname/qtype of failed queries
*/
isc_time_t expire;
/* isc_time_t expire;
isc_interval_t i;
uint32_t flags = 0;
@@ -885,7 +885,7 @@ ns_client_error(ns_client_t *client, isc_result_t result) {
client->query.qname,
client->query.qtype,
true, flags, &expire);
}
} */
}
ns_client_send(client);
+3 -2
View File
@@ -6116,10 +6116,11 @@ ns__query_sfcache(query_ctx_t *qctx) {
&qctx->client->tnow);
}
#else
failcache = dns_badcache_find(qctx->view->failcache,
/* failcache = dns_badcache_find(qctx->view->failcache,
qctx->client->query.qname,
qctx->qtype, &flags,
&qctx->client->tnow);
&qctx->client->tnow); */
failcache = false;
#endif
if (failcache &&
(((flags & NS_FAILCACHE_CD) != 0) ||