mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Added support for CHECK TABLE for S3 tables
Other things: - Don't allocate an IO_CACHE for scanning tables of type BLOCK (It was never used in this case) - Fixed bug in page cache that cased a hang when trying to read a not existing S3 block.
This commit is contained in:
@@ -13,8 +13,8 @@ drop table if exists t1;
|
||||
--echo # Test simple create of s3 table
|
||||
--echo #
|
||||
|
||||
create or replace table t1 (a int, b int, key (a)) engine=aria;
|
||||
insert into t1 select seq,seq+10 from seq_1_to_10000;
|
||||
create or replace table t1 (a int, b int, c varchar(1000), key (a), key(c)) engine=aria;
|
||||
insert into t1 select seq, seq+10, repeat(char(65+ mod(seq, 20)),mod(seq,1000)) from seq_1_to_10000;
|
||||
alter table t1 engine=s3;
|
||||
show create table t1;
|
||||
|
||||
@@ -23,9 +23,9 @@ show create table t1;
|
||||
--eval select * from information_schema.tables where table_schema="$database" and table_name="t1";
|
||||
--replace_column 8 # 12 # 13 # 14 # 19 #
|
||||
show table status like "t1";
|
||||
select * from t1 limit 10;
|
||||
select a,b from t1 limit 10;
|
||||
select count(*) from t1;
|
||||
select * from t1 where a between 10 and 20;
|
||||
select a,b from t1 where a between 10 and 20;
|
||||
--replace_column 9 #
|
||||
explain select * from t1 where a between 10 and 20;
|
||||
--error ER_OPEN_AS_READONLY
|
||||
@@ -43,7 +43,11 @@ delete from t1 where a>10;
|
||||
set @@use_stat_tables='never';
|
||||
truncate mysql.table_stats;
|
||||
--replace_result $database database
|
||||
check table t1;
|
||||
check table t1 fast;
|
||||
--replace_result $database database
|
||||
check table t1 quick;
|
||||
--replace_result $database database
|
||||
check table t1 extended;
|
||||
--replace_result $database database
|
||||
analyze table t1;
|
||||
--replace_result $database database
|
||||
@@ -61,7 +65,7 @@ select * from mysql.table_stats;
|
||||
|
||||
alter table t1 engine=aria;
|
||||
show create table t1;
|
||||
select * from t1 limit 10;
|
||||
select a,b from t1 limit 10;
|
||||
select count(*) from t1;
|
||||
delete from t1 where a=1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user