mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
4aa9d903c1
Fixed some bugs introduced in 5.1.47 Disabled some tests until we have merged with latest Xtradb configure.in: Added testing if valgrind/memcheck.h exists storage/pbxt/src/ha_pbxt.cc: LOCK_plugin is not anymore locked in init
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
--source include/have_innodb.inc
|
|
# XtraDB has lots of "still reachable" memory leak warnings at shutdown when
|
|
# --innodb-use-sys-malloc
|
|
--source include/not_valgrind.inc
|
|
|
|
#display current value of innodb_use_sys_malloc
|
|
SELECT @@GLOBAL.innodb_use_sys_malloc;
|
|
--echo 1 Expected
|
|
|
|
#try changing it. Should fail.
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@GLOBAL.innodb_use_sys_malloc=0;
|
|
--echo Expected error 'Read only variable'
|
|
|
|
SELECT @@GLOBAL.innodb_use_sys_malloc;
|
|
--echo 1 Expected
|
|
|
|
|
|
#do some stuff to see if it works.
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
|
|
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
|
|
select * from t1;
|
|
drop table t1;
|
|
--source include/have_innodb.inc
|
|
|
|
#display current value of innodb_use_sys_malloc
|
|
SELECT @@GLOBAL.innodb_use_sys_malloc;
|
|
--echo 1 Expected
|
|
|
|
#try changing it. Should fail.
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@GLOBAL.innodb_use_sys_malloc=0;
|
|
--echo Expected error 'Read only variable'
|
|
|
|
SELECT @@GLOBAL.innodb_use_sys_malloc;
|
|
--echo 1 Expected
|
|
|
|
|
|
#do some stuff to see if it works.
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
|
|
insert into t1 values (1),(2),(3),(4),(5),(6),(7);
|
|
select * from t1;
|
|
drop table t1;
|