Skip to content
Permalink
Browse files
MDEV-23566 SIGSEGV in mtr_t::init
mtr_t::init(): Correct the debug assertion that was added in
commit c893668 (MDEV-22970).
When the original failure scenario involves the system tablespace,
we could have m_user_space==nullptr. Let us compare m_user_space_id
instead.
  • Loading branch information
dr-m committed Aug 25, 2020
1 parent 65ee216 commit d8ba293
Showing 1 changed file with 2 additions and 1 deletion.
@@ -513,7 +513,8 @@ inline void mtr_t::init(buf_block_t *b)
{
if (UNIV_LIKELY_NULL(m_freed_pages))
{
ut_ad(m_user_space->id == b->page.id().space());
ut_ad(m_log_mode != MTR_LOG_ALL ||
m_user_space_id == b->page.id().space());
if (m_freed_pages->remove_if_exists(b->page.id().page_no()) &&
m_freed_pages->empty())
{

0 comments on commit d8ba293

Please sign in to comment.