mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
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".
This commit is contained in:
committed by
Arаm Sаrgsyаn
parent
11ab4ffb42
commit
ce75d4a96b
@@ -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);
|
||||
|
@@ -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 };
|
||||
|
Reference in New Issue
Block a user