From 3cda9f9f14fbf4cf299293b49dabe19580882bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 30 Jan 2023 09:49:35 +0100 Subject: [PATCH] Properly name ADB hashmap and named log memory contexts The ADB hashmaps are stored in extra memory contexts, so the hash tables are excluded from the overmem accounting. The new memory context was unnamed, give it a proper name. Same thing has happened with extra memory context used for named global log context - give the extra memory context a proper name. --- lib/dns/adb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 7fff6ead7d..146c5cecca 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -1952,6 +1952,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_loopmgr_t *loopmgr, isc_mem_attach(mem, &adb->mctx); isc_mem_create(&adb->hmctx); + isc_mem_setname(adb->hmctx, "ADB_hashmaps"); isc_hashmap_create(adb->hmctx, ADB_HASH_BITS, ISC_HASHMAP_CASE_INSENSITIVE, &adb->names);