mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Merge branch '10.3' into 10.4
This commit is contained in:
commit
ef968c9e63
5 changed files with 51 additions and 40 deletions
25
mysql-test/main/sp-no-valgrind.result
Normal file
25
mysql-test/main/sp-no-valgrind.result
Normal file
|
@ -0,0 +1,25 @@
|
|||
# MDEV-20699 do not cache SP in SHOW CREATE
|
||||
# Warmup round, this might allocate some memory for session variable
|
||||
# and the output
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp0() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp0;
|
||||
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||
sp0 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `sp0`()
|
||||
SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE sp0;
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp1() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp1;
|
||||
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||
sp1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`()
|
||||
SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
VARIABLE_VALUE-@local_mem_used
|
||||
0
|
||||
DROP PROCEDURE sp1;
|
||||
#
|
||||
# End of 10.3 tests
|
||||
#
|
26
mysql-test/main/sp-no-valgrind.test
Normal file
26
mysql-test/main/sp-no-valgrind.test
Normal file
|
@ -0,0 +1,26 @@
|
|||
|
||||
--source include/not_valgrind.inc
|
||||
|
||||
--echo # MDEV-20699 do not cache SP in SHOW CREATE
|
||||
--echo # Warmup round, this might allocate some memory for session variable
|
||||
--echo # and the output
|
||||
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp0() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp0;
|
||||
DROP PROCEDURE sp0;
|
||||
|
||||
#Check that CREATE/SHOW does not use memory in caches.
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp1() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp1;
|
||||
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
# FIXME: MDEV-26754 main.sp test fails for embedded server
|
||||
#SELECT VARIABLE_VALUE-@global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
DROP PROCEDURE sp1;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.3 tests
|
||||
--echo #
|
|
@ -8874,25 +8874,6 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
|
|||
BEGIN
|
||||
RETURN '';
|
||||
END' at line 2
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp0() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp0;
|
||||
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||
sp0 STRICT_ALL_TABLES CREATE DEFINER=`root`@`localhost` PROCEDURE `sp0`()
|
||||
SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE sp0;
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp1() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp1;
|
||||
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||
sp1 STRICT_ALL_TABLES CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`()
|
||||
SELECT 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
VARIABLE_VALUE-@local_mem_used
|
||||
0
|
||||
DROP PROCEDURE sp1;
|
||||
# End of 10.3 tests
|
||||
#
|
||||
# Start of 10.4 tests
|
||||
|
|
|
@ -10419,24 +10419,6 @@ END;
|
|||
$$
|
||||
DELIMITER ;$$
|
||||
|
||||
# MDEV-20699 do not cache SP in SHOW CREATE
|
||||
# Warmup round, this might allocate some memory for session variable
|
||||
# and the output
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp0() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp0;
|
||||
DROP PROCEDURE sp0;
|
||||
|
||||
#Check that CREATE/SHOW does not use memory in caches.
|
||||
SELECT VARIABLE_VALUE into @global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
SELECT VARIABLE_VALUE into @local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
CREATE PROCEDURE sp1() SELECT 1;
|
||||
SHOW CREATE PROCEDURE sp1;
|
||||
SELECT VARIABLE_VALUE-@local_mem_used FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
# FIXME: MDEV-26754 main.sp test fails for embedded server
|
||||
#SELECT VARIABLE_VALUE-@global_mem_used FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='MEMORY_USED';
|
||||
DROP PROCEDURE sp1;
|
||||
--echo # End of 10.3 tests
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
connection node_2;
|
||||
connection node_1;
|
||||
connection node_1;
|
||||
call mtr.add_suppression("WSREP: write_handler().*");
|
||||
connection node_2;
|
||||
|
@ -26,7 +24,6 @@ connection node_1;
|
|||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||||
VARIABLE_VALUE = 2
|
||||
1
|
||||
connection node_2;
|
||||
connection node_1;
|
||||
call mtr.add_suppression("WSREP: write_handler().*");
|
||||
connection node_2;
|
||||
|
|
Loading…
Reference in a new issue