| 1 |
--source include/have_s3.inc |
| 2 |
--source include/have_sequence.inc |
| 3 |
|
| 4 |
# |
| 5 |
# Create unique database for running the tests |
| 6 |
# |
| 7 |
--source create_database.inc |
| 8 |
--disable_warnings |
| 9 |
drop table if exists t1; |
| 10 |
--enable_warnings |
| 11 |
|
| 12 |
--echo # |
| 13 |
--echo # MDEV-32884 Make s3_debug dynamic |
| 14 |
--echo # |
| 15 |
|
| 16 |
create or replace table t1 (a int, b int, c varchar(1000), key (a), key(c)) engine=aria; |
| 17 |
insert into t1 select seq, seq+10, repeat(char(65+ mod(seq, 20)),mod(seq,1000)) from seq_1_to_100; |
| 18 |
alter table t1 engine=s3; |
| 19 |
show create table t1; |
| 20 |
select count(*) from t1; |
| 21 |
flush table t1; |
| 22 |
|
| 23 |
--let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err |
| 24 |
--let SEARCH_PATTERN=s3_test_ |
| 25 |
--source include/search_pattern_in_file.inc |
| 26 |
set @@global.s3_debug=1; |
| 27 |
select count(*) from t1; |
| 28 |
set @@global.s3_debug=0; |
| 29 |
--source include/search_pattern_in_file.inc |
| 30 |
select count(*) from t1; |
| 31 |
drop table t1; |
| 32 |
--source include/search_pattern_in_file.inc |
| 33 |
|
| 34 |
--source drop_database.inc |