mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
This change splits innodb_file_format_check into innodb_file_format_check
and innodb_file_format_max two system variables. And this also fixes bug #53654 after 2nd shutdown innodb_file_format_check attains strange values. rb://366 approved by Marko
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
-- source include/have_innodb.inc
|
||||
|
||||
let $innodb_file_format_orig=`select @@innodb_file_format`;
|
||||
let $innodb_file_format_max_orig=`select @@innodb_file_format_max`;
|
||||
|
||||
select @@innodb_file_format;
|
||||
select @@innodb_file_format_check;
|
||||
select @@innodb_file_format_max;
|
||||
set global innodb_file_format=antelope;
|
||||
set global innodb_file_format=barracuda;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
@@ -14,16 +18,24 @@ set global innodb_file_format=on;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_file_format=off;
|
||||
select @@innodb_file_format;
|
||||
set global innodb_file_format_check=antelope;
|
||||
set global innodb_file_format_check=barracuda;
|
||||
set global innodb_file_format_max=antelope;
|
||||
set global innodb_file_format_max=barracuda;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_file_format_check=cheetah;
|
||||
select @@innodb_file_format_check;
|
||||
set global innodb_file_format_check=default;
|
||||
select @@innodb_file_format_check;
|
||||
set global innodb_file_format_max=cheetah;
|
||||
select @@innodb_file_format_max;
|
||||
set global innodb_file_format_max=default;
|
||||
select @@innodb_file_format_max;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_file_format=on;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_file_format=off;
|
||||
select @@innodb_file_format_check;
|
||||
set global innodb_file_format_check=antelope;
|
||||
select @@innodb_file_format_max;
|
||||
set global innodb_file_format_max=antelope;
|
||||
|
||||
# innodb_file_format_check is read only variable, can be
|
||||
# set as server startup parameter
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set global innodb_file_format_check=off;
|
||||
|
||||
eval SET GLOBAL innodb_file_format=$innodb_file_format_orig;
|
||||
eval SET GLOBAL innodb_file_format_max=$innodb_file_format_max_orig;
|
||||
|
||||
Reference in New Issue
Block a user