From 4b8ba56e709cd18f4eaeacbf82a7ef334470ef94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Fri, 6 Mar 2026 13:19:33 +0200 Subject: [PATCH] MDEV-38958 fixup: Correct the address ranges buf_pool_t::create(): Invoke ut_dontdump() on the entire buf_pool.memory_unaligned. buf_pool_t::resize(): Invoke ut_dontdump() on the grown allocation. Thanks to Alessandro Vetere for pointing this out. --- storage/innobase/buf/buf0buf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc index bc28a86d74aa9..60a84519122be 100644 --- a/storage/innobase/buf/buf0buf.cc +++ b/storage/innobase/buf/buf0buf.cc @@ -1381,7 +1381,7 @@ bool buf_pool_t::create() noexcept memory_unaligned= nullptr; goto oom; } - ut_dontdump(memory_unaligned, size, true); + ut_dontdump(memory_unaligned, size_unaligned, true); #else update_malloc_size(actual_size, 0); #endif @@ -1938,7 +1938,7 @@ ATTRIBUTE_COLD void buf_pool_t::resize(size_t size, THD *thd) noexcept return; } - ut_dontdump(memory_unaligned, size, true); + ut_dontdump(memory + old_size, size - old_size, true); size_in_bytes_requested= size; size_in_bytes= size;