Skip to content

Commit 6dc037a

Browse files
committed
MDEV-23399 fixup: Remove double-free of a buffer page
In commit 7cffb5f we changed the interface of buf_page_create() so that the free_block is allocated by the caller. Both calls to buf_LRU_block_free_non_file_page() should have been removed. This caused an assertion failure 'block->page.state() == BUF_BLOCK_MEMORY' in buf_LRU_block_free_non_file_page(). The bug only affected ROW_FORMAT=COMPRESSED pages.
1 parent bdbec5a commit 6dc037a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

storage/innobase/buf/buf0buf.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3827,7 +3827,6 @@ buf_page_create(fil_space_t *space, uint32_t offset,
38273827
if (block->page.io_fix() != BUF_IO_NONE)
38283828
{
38293829
hash_lock->write_unlock();
3830-
buf_LRU_block_free_non_file_page(free_block);
38313830
mysql_mutex_unlock(&buf_pool.mutex);
38323831
goto loop;
38333832
}

0 commit comments

Comments
 (0)