1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fix perfschema.sizing_* tests to run

still cannot be enabled permanently, but at least they
could be run manually, if needed
This commit is contained in:
Sergei Golubchik
2021-07-10 12:42:53 +02:00
parent e3814a74ee
commit bd3ac6758a
14 changed files with 158 additions and 93 deletions

View File

@ -5,27 +5,25 @@
--source include/not_valgrind.inc
--source ../include/have_aligned_memory.inc
#SELECT @@open_files_limit, @@table_open_cache, @@table_definition_cache, @@max_connections;
#exit;
# Skip test if not defaults is used.
let $max_open_files_limit= `SELECT @@open_files_limit < 5000`;
if ($max_open_files_limit)
if (`SELECT @@open_files_limit < 1024`)
{
skip Need open_files_limit to be at least 5000;
skip Need open_files_limit to be at least 1024;
}
let $max_table_open_cache= `SELECT @@table_open_cache != 2000`;
if ($max_table_open_cache)
if (`SELECT @@table_open_cache != 421`)
{
skip Need table_open_cache to be exactly 2000;
skip Need table_open_cache to be exactly 421;
}
let $max_table_definition_cache= `SELECT @@table_definition_cache != 1400`;
if ($max_table_definition_cache)
if (`SELECT @@table_definition_cache != 400`)
{
skip Need table_definition_cache to be exactly 1400;
skip Need table_definition_cache to be exactly 400;
}
let $max_connections= `SELECT @@max_connections != 151`;
if ($max_connections)
if (`SELECT @@max_connections != 151`)
{
skip Need max_connections to be exactly 151;
}
--source ../include/sizing_auto.inc