]> 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 11:54:57 +0000 (12:54 +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.

bin/named/log.c

index 71e318efef7e2c61629ce4d7d81c52df03374743..d25382d89ac2f08c3ac2592e9ce7ab816c44506d 100644 (file)
@@ -60,6 +60,7 @@ named_log_init(bool safe) {
         * Setup a logging context.
         */
        isc_mem_create(&log_mctx);
+       isc_mem_setname(log_mctx, "named_log");
        isc_log_create(log_mctx, &named_g_lctx, &lcfg);
        isc_mem_detach(&log_mctx);