From 5d264b33295d164d55659b166ead7b31b92eda39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 25 Apr 2025 13:01:16 +0200 Subject: [PATCH] Set name for all the isc_mem context The memory context for isc_managers and dst_api units had no name and that was causing trouble with the statistics channel output. Set the name for the two memory context that were missing a proper name. --- lib/dns/dst_api.c | 1 + lib/isc/managers.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/dns/dst_api.c b/lib/dns/dst_api.c index 9426f9c260..9962db728b 100644 --- a/lib/dns/dst_api.c +++ b/lib/dns/dst_api.c @@ -191,6 +191,7 @@ static isc_mem_t *dst__mctx = NULL; void dst__lib_initialize(void) { isc_mem_create(&dst__mctx); + isc_mem_setname(dst__mctx, "dst"); dst__hmacmd5_init(&dst_t_func[DST_ALG_HMACMD5]); dst__hmacsha1_init(&dst_t_func[DST_ALG_HMACSHA1]); diff --git a/lib/isc/managers.c b/lib/isc/managers.c index b4912e8ac0..1695d5f6f9 100644 --- a/lib/isc/managers.c +++ b/lib/isc/managers.c @@ -22,6 +22,7 @@ isc_managers_create(isc_mem_t **mctxp, uint32_t workers, REQUIRE(mctxp != NULL && *mctxp == NULL); isc_mem_create(mctxp); INSIST(*mctxp != NULL); + isc_mem_setname(*mctxp, "managers"); REQUIRE(loopmgrp != NULL && *loopmgrp == NULL); isc_loopmgr_create(*mctxp, workers, loopmgrp);