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;