1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge tag 'mariadb-10.0.23' into 10.0-galera

This commit is contained in:
Nirbhay Choubey
2015-12-19 14:24:38 -05:00
3579 changed files with 644330 additions and 222421 deletions

View File

@@ -0,0 +1,34 @@
#
# Basic test for innodb_buffer_pool_dump_pct
#
-- source include/have_innodb.inc
# Check the default value
SET @orig = @@global.innodb_buffer_pool_dump_pct;
SELECT @orig;
# Do the dump
SET GLOBAL innodb_buffer_pool_dump_pct=3, GLOBAL innodb_buffer_pool_dump_now = ON;
# Wait for the dump to complete
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 33) = 'Buffer pool(s) dump completed at '
FROM information_schema.global_status
WHERE LOWER(variable_name) = 'innodb_buffer_pool_dump_status';
-- source include/wait_condition.inc
# Confirm that the dump file has been created
-- let $file = `SELECT CONCAT(@@datadir, @@global.innodb_buffer_pool_filename)`
-- file_exists $file
--disable_warnings
SET GLOBAL innodb_buffer_pool_dump_pct=0;
SELECT @@global.innodb_buffer_pool_dump_pct;
SHOW WARNINGS;
SET GLOBAL innodb_buffer_pool_dump_pct=101;
SELECT @@global.innodb_buffer_pool_dump_pct;
SHOW WARNINGS;
--enable_warnings
SET GLOBAL innodb_buffer_pool_dump_pct=@orig;

View File

@@ -0,0 +1,46 @@
# Copyright (C) 2010 Sun Microsystems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--source include/not_embedded.inc
#
# Only global
#
select @@global.max_digest_length;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.max_digest_length;
show global variables like 'max_digest_length';
show session variables like 'max_digest_length';
select * from information_schema.global_variables
where variable_name='max_digest_length';
select * from information_schema.session_variables
where variable_name='max_digest_length';
#
# Read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global max_digest_length=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session max_digest_length=1;

View File

@@ -0,0 +1,2 @@
--loose-enable-performance-schema
--loose-performance-schema-max_digest_length=1024

View File

@@ -0,0 +1,47 @@
# Copyright (C) 2010 Sun Microsystems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--source include/not_embedded.inc
--source include/have_perfschema.inc
#
# Only global
#
select @@global.performance_schema_max_digest_length;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.performance_schema_max_digest_length;
show global variables like 'performance_schema_max_digest_length';
show session variables like 'performance_schema_max_digest_length';
select * from information_schema.global_variables
where variable_name='performance_schema_max_digest_length';
select * from information_schema.session_variables
where variable_name='performance_schema_max_digest_length';
#
# Read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global performance_schema_max_digest_length=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session performance_schema_max_digest_length=1;