Commit 84089d0a authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:4288], remove mvcc-32, test is no longer valid with changes to garbage...

[t:4288], remove mvcc-32, test is no longer valid with changes to garbage collection due to flusher threads

git-svn-id: file:///svn/mysql/tests/mysql-test@39543 c7de825b-a66e-492c-adef-691d508d4ae1
parent 830d5308
SET STORAGE_ENGINE = 'tokudb';
DROP TABLE IF EXISTS foo;
create table foo (a int, b int, primary key (a))engine=TokuDB;
insert into foo values (1,10),(2,20),(3,30),(4,40),(5,50),(6,60),(7,70),(8,80),(9,90);
insert into foo values (10,100),(20,200),(30,300),(40,400),(50,500),(60,600),(70,700),(80,800),(90,900);
# row estimate should be 6
explain select count(*) from foo where a > 30;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 6 Using where; Using index
select count(*) from foo where a > 30;
count(*)
6
delete from foo where a > 50;
# row estimate should be 2
explain select count(*) from foo where a > 30;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo range PRIMARY PRIMARY 4 NULL 2 Using where; Using index
select count(*) from foo where a > 30;
count(*)
2
DROP TABLE foo;
# tests that deletes are cleaned by verifying that row estimate goes down
SET STORAGE_ENGINE = 'tokudb';
--disable_warnings
DROP TABLE IF EXISTS foo;
--enable_warnings
create table foo (a int, b int, primary key (a))engine=TokuDB;
insert into foo values (1,10),(2,20),(3,30),(4,40),(5,50),(6,60),(7,70),(8,80),(9,90);
insert into foo values (10,100),(20,200),(30,300),(40,400),(50,500),(60,600),(70,700),(80,800),(90,900);
--echo # row estimate should be 6
explain select count(*) from foo where a > 30;
select count(*) from foo where a > 30;
delete from foo where a > 50;
--echo # row estimate should be 2
explain select count(*) from foo where a > 30;
select count(*) from foo where a > 30;
DROP TABLE foo;
\ No newline at end of file
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