Commit 707101d3 authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-7317: Make an index ignorable to the optimizer: more tests

Add a test that marking index as [not] ignored uses algorithm=instant
with InnoDB.
parent d9c5eb2f
create table t1 (a int, b int, key a1(a)) engine=innodb;
insert into t1 values (1,1),(2,2),(3,3);
set alter_algorithm='instant';
alter table t1 alter index a1 ignored;
alter table t1 alter index a1 not ignored;
set alter_algorithm=default;
drop table t1;
--source include/have_innodb.inc
#
# Check if marking index as [not] ignored is an instant operation with InnoDB
#
create table t1 (a int, b int, key a1(a)) engine=innodb;
insert into t1 values (1,1),(2,2),(3,3);
set alter_algorithm='instant';
alter table t1 alter index a1 ignored;
alter table t1 alter index a1 not ignored;
set alter_algorithm=default;
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment