From ce75d4a96b72ed4b3063850a98c3a01f71ff92f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 14 Dec 2021 13:02:50 +0100 Subject: [PATCH] Set the clientmgr isc_mem_t context name The memory context created in the clientmgr context was missing a name, so it was nameless in the memory context statistics. Set the clientmgr memory context name to "clientmgr". --- lib/dns/view.c | 2 +- lib/ns/client.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/view.c b/lib/dns/view.c index 5b6ef54388..13679f3d3d 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -830,9 +830,9 @@ dns_view_createresolver(dns_view_t *view, isc_taskmgr_t *taskmgr, isc_refcount_increment(&view->weakrefs); isc_mem_create(&mctx); + isc_mem_setname(mctx, "ADB"); result = dns_adb_create(mctx, view, timermgr, taskmgr, &view->adb); - isc_mem_setname(mctx, "ADB"); isc_mem_detach(&mctx); if (result != ISC_R_SUCCESS) { dns_resolver_shutdown(view->resolver); diff --git a/lib/ns/client.c b/lib/ns/client.c index 5eab55c0e3..eae128f573 100644 --- a/lib/ns/client.c +++ b/lib/ns/client.c @@ -2460,6 +2460,7 @@ ns_clientmgr_create(ns_server_t *sctx, isc_taskmgr_t *taskmgr, isc_result_t result; isc_mem_create(&mctx); + isc_mem_setname(mctx, "clientmgr"); manager = isc_mem_get(mctx, sizeof(*manager)); *manager = (ns_clientmgr_t){ .magic = 0, .mctx = mctx };