]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace FIXME with rationale for not cleaning expired delegdb nodes
authorOndřej Surý <ondrej@isc.org>
Fri, 10 Apr 2026 11:19:55 +0000 (13:19 +0200)
committerColin Vidal <colin@isc.org>
Thu, 16 Apr 2026 09:28:13 +0000 (11:28 +0200)
Expired delegation nodes are naturally replaced when the resolver
fetches fresh data, and any remaining stale nodes are reclaimed by
SIEVE eviction under memory pressure.

lib/dns/deleg.c

index 151d7fe8ba9acbee4a619806f4a24028f58cb5c8..92ee3f1a8f109f78e10139d2d1a3ccafc1474463 100644 (file)
@@ -339,9 +339,11 @@ dns__deleg_lookup(dns_delegdb_t *delegdb, dns_qpread_t *qpr,
        }
 
        /*
-        * FIXME: if we lookup something that has expired, we need
-        * either the "deadnodes" (see qpcache) mechanism here - or call
-        * something like isc_async_run(delete_me, node).
+        * The expired node will be replaced when the resolver fetches
+        * a fresh delegation, so there is no need to schedule explicit
+        * cleanup here.  Stale nodes that are never replaced will
+        * eventually be evicted by the SIEVE policy under memory
+        * pressure.
         */
        return ISC_R_NOTFOUND;
 }