2010-09-14 23:06:54 +02:00
|
|
|
#
|
|
|
|
# test for maria* aliases (system variables, status variables,
|
|
|
|
# command-line options). They should match aria* variables.
|
|
|
|
#
|
|
|
|
|
|
|
|
select * from information_schema.plugins where plugin_name like '%aria';
|
|
|
|
|
|
|
|
select maria_vars.variable_name, aria_vars.variable_name from
|
|
|
|
information_schema.session_variables as maria_vars left join
|
|
|
|
information_schema.session_variables as aria_vars
|
|
|
|
on (maria_vars.variable_name = concat('m', aria_vars.variable_name))
|
|
|
|
where maria_vars.variable_name like 'maria_%'
|
|
|
|
and not (maria_vars.variable_value <=> aria_vars.variable_value);
|
|
|
|
|
|
|
|
select maria_vars.variable_name, aria_vars.variable_name from
|
|
|
|
information_schema.session_status as maria_vars left join
|
|
|
|
information_schema.session_status as aria_vars
|
|
|
|
on (maria_vars.variable_name = concat('m', aria_vars.variable_name))
|
|
|
|
where maria_vars.variable_name like 'maria_%'
|
|
|
|
and not (maria_vars.variable_value <=> aria_vars.variable_value);
|
|
|
|
|
|
|
|
select maria_vars.variable_name, aria_vars.variable_name from
|
|
|
|
information_schema.session_variables as aria_vars left join
|
|
|
|
information_schema.session_variables as maria_vars
|
|
|
|
on (maria_vars.variable_name = concat('m', aria_vars.variable_name))
|
|
|
|
where aria_vars.variable_name like 'aria_%'
|
|
|
|
and not (maria_vars.variable_value <=> aria_vars.variable_value);
|
|
|
|
|
|
|
|
select maria_vars.variable_name, aria_vars.variable_name from
|
|
|
|
information_schema.session_status as aria_vars left join
|
|
|
|
information_schema.session_status as maria_vars
|
|
|
|
on (maria_vars.variable_name = concat('m', aria_vars.variable_name))
|
|
|
|
where aria_vars.variable_name like 'aria_%'
|
|
|
|
and not (maria_vars.variable_value <=> aria_vars.variable_value);
|
|
|
|
|
|
|
|
set @old_checkpoint_interval=@@global.aria_checkpoint_interval;
|
|
|
|
set global maria_checkpoint_interval=10;
|
|
|
|
select @@global.aria_checkpoint_interval;
|
|
|
|
set global maria_checkpoint_interval=@old_checkpoint_interval;
|
|
|
|
|
|
|
|
set @old_sort_buffer_size=@@global.maria_sort_buffer_size;
|
|
|
|
set global aria_sort_buffer_size=1024;
|
|
|
|
select @@global.maria_sort_buffer_size;
|
|
|
|
set global aria_sort_buffer_size=@old_sort_buffer_size;
|
|
|
|
|
|
|
|
set @old_sort_buffer_size=@@session.maria_sort_buffer_size;
|
|
|
|
set session aria_sort_buffer_size=2048;
|
|
|
|
select @@session.maria_sort_buffer_size;
|
|
|
|
set session aria_sort_buffer_size=@old_sort_buffer_size;
|
|
|
|
|
|
|
|
set @old_max_sort_file_size=@@global.maria_max_sort_file_size,
|
|
|
|
@old_repair_threads=@@global.aria_repair_threads;
|
|
|
|
set @@global.maria_max_sort_file_size=default, @@global.aria_repair_threads=default;
|
2010-09-16 09:04:59 +02:00
|
|
|
--replace_result 4293918720 9223372036853727232
|
2010-09-14 23:06:54 +02:00
|
|
|
select @@global.maria_max_sort_file_size, @@global.aria_repair_threads;
|
|
|
|
set @@global.aria_max_sort_file_size=@old_max_sort_file_size,
|
|
|
|
@@global.maria_repair_threads=@old_repair_threads;
|
|
|
|
|