chg: usr: Add more information to the rndc recursing output about fetches

This adds more information about the active fetches for debugging and diagnostic purposes.

Merge branch 'ondrej/provide-more-information-in-dns_resolver_dumpfetches' into 'main'

See merge request isc-projects/bind9!11305
This commit is contained in:
Ondřej Surý 2025-12-09 17:33:26 +01:00
commit a3c703ac1c

View 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++;