]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add more information to the rndc recursing output about fetches
authorOndřej Surý <ondrej@isc.org>
Fri, 28 Nov 2025 14:13:58 +0000 (15:13 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 9 Dec 2025 16:31:45 +0000 (17:31 +0100)
It is possible to have a fetch that is active, but it has been cloned,
so it won't be used when found in the hash table.   The fetch options
also prevent matching in the hash table, so add a hexadecimal dump of
the fctx->options to the output.

lib/dns/resolver.c

index 404086b898e67fd617e213a292ddbab2f95b6f19..989f892f6aeb2071c6c5c0dd6e1ce1d06fe714e1 100644 (file)
@@ -10766,9 +10766,11 @@ dns_resolver_dumpfetches(dns_resolver_t *res, isc_statsformat_t format,
 
                dns_rdatatype_format(fctx->type, typebuf, sizeof(typebuf));
 
-               fprintf(fp, "/%s (%s): started %s, ", typebuf,
-                       fctx->state == fetchstate_active ? "active" : "done",
-                       timebuf);
+               fprintf(fp, "/%s (%s), 0x%x: started %s, ", typebuf,
+                       fctx->state == fetchstate_done ? "done"
+                       : fctx->cloned                 ? "cloned"
+                                                      : "active",
+                       fctx->options, timebuf);
 
                ISC_LIST_FOREACH(fctx->resps, resp, link) {
                        resp_count++;