48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
--source suite/xengine/include/have_xengine.inc
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
|
|
# Start from clean slate
|
|
#set global xengine_compact_cf = 'cf1';
|
|
#set global xengine_compact_cf = 'cf2';
|
|
#set global xengine_signal_drop_index_thread = 1;
|
|
--source include/restart_mysqld.inc
|
|
--exec truncate --size=0 $MYSQLTEST_VARDIR/log/mysqld.1.err
|
|
|
|
CREATE TABLE t1 (
|
|
a int not null,
|
|
b int not null,
|
|
c varchar(500) not null,
|
|
primary key (a,b) comment 'cf1',
|
|
key (b) comment 'cf2'
|
|
) ENGINE=XEngine;
|
|
|
|
# Populate tables
|
|
let $max = 20000;
|
|
let $table = t1;
|
|
--source drop_table3_repopulate_table.inc
|
|
|
|
select variable_value into @a from performance_schema.global_status where variable_name='xengine_compact_read_bytes';
|
|
if ($truncate_table)
|
|
{
|
|
truncate table t1;
|
|
}
|
|
if ($drop_table)
|
|
{
|
|
drop table t1;
|
|
}
|
|
|
|
#let $show_rpl_debug_info= 1; # to force post-failure printout
|
|
#let $wait_timeout= 300; # Override default 30 seconds with 300.
|
|
#let $wait_condition = select count(*) = 0
|
|
# as c from information_schema.xengine_global_info
|
|
# where TYPE = 'DDL_DROP_INDEX_ONGOING';
|
|
#--source include/wait_condition.inc
|
|
|
|
select case when variable_value-@a < 500000 then 'true' else 'false' end from performance_schema.global_status where variable_name='xengine_compact_read_bytes';
|
|
|
|
# Cleanup
|
|
DROP TABLE IF EXISTS t1;
|