
#
#  2010-01-27 OBN - Added 
#

--source include/have_innodb.inc

# when running with valgring, mtr uses --innodb-use-sys-malloc=0,
# while below we want to see the default value.
--source include/not_valgrind.inc

#
# show the global and session values;
#
--echo Valid values are 'ON' and 'OFF' 
select @@global.innodb_use_sys_malloc;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_use_sys_malloc;
show global variables like 'innodb_use_sys_malloc';
show session variables like 'innodb_use_sys_malloc';
select * from information_schema.global_variables where variable_name='innodb_use_sys_malloc';
select * from information_schema.session_variables where variable_name='innodb_use_sys_malloc';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_use_sys_malloc=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session innodb_use_sys_malloc=1;

