mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-10829: Port Innodb NUMA interleave test cases from MySQL
This commit is contained in:
parent
f566a4f83c
commit
26e3117ca9
3 changed files with 33 additions and 0 deletions
9
mysql-test/include/have_numa.inc
Normal file
9
mysql-test/include/have_numa.inc
Normal file
|
@ -0,0 +1,9 @@
|
|||
let $numa_support = `SELECT COUNT(VARIABLE_VALUE) = 1 FROM
|
||||
INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_numa_interleave'`;
|
||||
|
||||
if ( $numa_support == 0 )
|
||||
{
|
||||
--skip Test requires: Binary must be built with NUMA support.
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
SELECT @@GLOBAL.innodb_numa_interleave;
|
||||
@@GLOBAL.innodb_numa_interleave
|
||||
1
|
||||
SET @@GLOBAL.innodb_numa_interleave=off;
|
||||
ERROR HY000: Variable 'innodb_numa_interleave' is a read only variable
|
||||
SELECT @@GLOBAL.innodb_numa_interleave;
|
||||
@@GLOBAL.innodb_numa_interleave
|
||||
1
|
||||
SELECT @@SESSION.innodb_numa_interleave;
|
||||
ERROR HY000: Variable 'innodb_numa_interleave' is a GLOBAL variable
|
|
@ -0,0 +1,14 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/have_numa.inc
|
||||
--source include/have_64bit.inc
|
||||
|
||||
SELECT @@GLOBAL.innodb_numa_interleave;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@GLOBAL.innodb_numa_interleave=off;
|
||||
|
||||
SELECT @@GLOBAL.innodb_numa_interleave;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@SESSION.innodb_numa_interleave;
|
||||
|
Loading…
Reference in a new issue