Skip to content

Commit

Permalink
Cleanup test sys_vars.innodb_buffer_pool_size_basic
Browse files Browse the repository at this point in the history
When using huge pages, the innodb_buffer_pool_size cannot necessarily
be restored. Simplify things by restarting the server.
  • Loading branch information
dr-m committed Dec 10, 2019
1 parent 41e6a15 commit f2d3b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Expand Up @@ -50,5 +50,3 @@ COUNT(@@GLOBAL.innodb_buffer_pool_size)
1 Expected
SELECT innodb_buffer_pool_size = @@SESSION.innodb_buffer_pool_size;
ERROR 42S22: Unknown column 'innodb_buffer_pool_size' in 'field list'
Expected error 'Readonly variable'
SET @@GLOBAL.innodb_buffer_pool_size = @start_buffer_pool_size;
13 changes: 2 additions & 11 deletions mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test
Expand Up @@ -27,7 +27,6 @@
--disable_query_log
if (`select (version() like '%debug%') > 0`)
{
set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
set global innodb_disable_resize_buffer_pool_debug = OFF;
}
--enable_query_log
Expand Down Expand Up @@ -116,15 +115,7 @@ SELECT COUNT(@@GLOBAL.innodb_buffer_pool_size);

--Error ER_BAD_FIELD_ERROR
SELECT innodb_buffer_pool_size = @@SESSION.innodb_buffer_pool_size;
--echo Expected error 'Readonly variable'


SET @@GLOBAL.innodb_buffer_pool_size = @start_buffer_pool_size;
--source include/wait_condition.inc

--disable_query_log
if (`select (version() like '%debug%') > 0`)
{
set global innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
}
--enable_query_log
# Restore the original buffer pool size.
--source include/restart_mysqld.inc

0 comments on commit f2d3b2e

Please sign in to comment.