]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
rrcache: disabled parent-child diff tests where parent is right
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 24 Sep 2015 09:42:34 +0000 (11:42 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 24 Sep 2015 09:42:34 +0000 (11:42 +0200)
until RFC2181 credibility is implemented in cache, this behavior breaks
DNSSEC as the parent-side comes first to the cache
disabled this behavior until implemented properly

lib/layer/rrcache.c
tests/testdata_notimpl/iter_pcdiff.rpl [moved from tests/testdata/iter_pcdiff.rpl with 100% similarity]
tests/testdata_notimpl/iter_pcnamerec.rpl [moved from tests/testdata/iter_pcnamerec.rpl with 100% similarity]

index e6b9f7fda86765e6dd469c951cd2f252d00bb086..5da6d032c39237a594ebaae70ec1944bad0c7f7b 100644 (file)
@@ -184,12 +184,6 @@ static int commit_rr(const char *key, void *val, void *data)
           */
        knot_rrset_t query_rr;
        knot_rrset_init(&query_rr, rr->owner, rr->type, rr->rclass);
-       if (kr_cache_peek_rr(baton->txn, &query_rr, &drift) == 0) {
-               /* Allow replace if RRSet in the cache is about to expire. */
-               if (!is_expiring(&query_rr, drift)) {
-                       return kr_ok();
-               }
-       }
        return kr_cache_insert_rr(baton->txn, rr, baton->timestamp);
 }