Commit 33ffcecc authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-22114 Assertion failure on SET GLOBAL innodb_buffer_pool_evict='uncompressed'

innodb_buffer_pool_evict_uncompressed(): Remove the mutex acquisition
that was inadvertently added in 1a6f708e.
parent b212f1da
SELECT @@global.innodb_buffer_pool_evict;
@@global.innodb_buffer_pool_evict
CREATE TABLE t(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
SET GLOBAL innodb_buffer_pool_evict = 'uncompressed';
SELECT @@global.innodb_buffer_pool_evict;
@@global.innodb_buffer_pool_evict
DROP TABLE t;
......@@ -4,7 +4,9 @@
SELECT @@global.innodb_buffer_pool_evict;
CREATE TABLE t(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
SET GLOBAL innodb_buffer_pool_evict = 'uncompressed';
# Should always be empty.
SELECT @@global.innodb_buffer_pool_evict;
DROP TABLE t;
......@@ -18279,10 +18279,8 @@ innodb_buffer_pool_evict_uncompressed()
ut_ad(buf_block_get_state(block) == BUF_BLOCK_FILE_PAGE);
ut_ad(block->in_unzip_LRU_list);
ut_ad(block->page.in_LRU_list);
mutex_enter(&block->mutex);
if (!buf_LRU_free_page(&block->page, false)) {
mutex_exit(&block->mutex);
all_evicted = false;
}
block = prev_block;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment