mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
bc5e904043
The previous commit for MDEV-32884 fixed the s3_protocol_version option, which was previous only using "Auto", no matter what it was set to. This patch does several things to keep the old behaviour whilst correcting for new behaviour and laying the groundwork for the future. This includes: * `Original` now means v2 protocol, which it would have been due to the option not working, so upgrades will stil work. * A new `Legacy` option has been added to mean v1 protocol. * Options `Path` and `Domain` have been added, these will be the only two options apart from `Auto` in a future release, and are more aligned with what this variable means. * Fixed the s3.debug test so that it works with v2 protocol. * Fixed the s3.amazon test so that it works with region subdomains. * Added additional modes to the s3.amazon test. * Added s3.not_amazon test for the remaining modes. This replaces PR #2902.
32 lines
844 B
Text
32 lines
844 B
Text
drop table if exists t1;
|
|
#
|
|
# MDEV-32884 Make s3_debug dynamic
|
|
#
|
|
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_100;
|
|
alter table t1 engine=s3;
|
|
show create table t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` int(11) DEFAULT NULL,
|
|
`c` varchar(1000) DEFAULT NULL,
|
|
KEY `a` (`a`),
|
|
KEY `c` (`c`)
|
|
) ENGINE=S3 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci PAGE_CHECKSUM=1
|
|
select count(*) from t1;
|
|
count(*)
|
|
100
|
|
flush table t1;
|
|
NOT FOUND /s3_test_/ in mysqld.1.err
|
|
set @@global.s3_debug=1;
|
|
select count(*) from t1;
|
|
count(*)
|
|
100
|
|
set @@global.s3_debug=0;
|
|
FOUND 6 /s3_test_/ in mysqld.1.err
|
|
select count(*) from t1;
|
|
count(*)
|
|
100
|
|
drop table t1;
|
|
FOUND 6 /s3_test_/ in mysqld.1.err
|