]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Properly name ADB hashmap and named log memory contexts
authorOndřej Surý <ondrej@isc.org>
Mon, 30 Jan 2023 08:49:35 +0000 (09:49 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 30 Jan 2023 10:52:53 +0000 (11:52 +0100)
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

index 7fff6ead7d3b14e2dac53f96f19e1d6bb7ba0a4b..146c5cecca143c1fda4a0d647af113fc0a648caa 100644 (file)
@@ -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);