summaryrefslogtreecommitdiff
path: root/mysql-test/suite/s3
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2020-09-04 00:15:22 +0300
committerSergei Petrunia <psergey@askmonty.org>2020-09-08 13:42:55 +0300
commite38ac391044a433d63f4a4de9d2a10a44e9437e2 (patch)
tree171e54e43da39580112651335fcc79e79a70dafc /mysql-test/suite/s3
parentc5517cd86440b6669509211b1ad10f837a929952 (diff)
downloadmariadb-git-e38ac391044a433d63f4a4de9d2a10a44e9437e2.tar.gz
MDEV-23662: Make S3 Storage Engine usable with MinIO
Add @@s3_port and @@s3_use_http. One can set these to access the local MinIO, for example.
Diffstat (limited to 'mysql-test/suite/s3')
-rw-r--r--mysql-test/suite/s3/basic.result2
-rw-r--r--mysql-test/suite/s3/my.cnf12
-rw-r--r--mysql-test/suite/s3/slave.cnf12
3 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/suite/s3/basic.result b/mysql-test/suite/s3/basic.result
index 9cddca79fc5..cf7d7377d92 100644
--- a/mysql-test/suite/s3/basic.result
+++ b/mysql-test/suite/s3/basic.result
@@ -94,11 +94,13 @@ s3_pagecache_age_threshold X
s3_pagecache_buffer_size X
s3_pagecache_division_limit X
s3_pagecache_file_hash_size X
+s3_port X
s3_protocol_version X
s3_region X
s3_replicate_alter_as_create_select X
s3_secret_key X
s3_slave_ignore_updates X
+s3_use_http X
show variables like "s3_slave%";
Variable_name Value
s3_slave_ignore_updates OFF
diff --git a/mysql-test/suite/s3/my.cnf b/mysql-test/suite/s3/my.cnf
index 6f8c27d4d0d..e810449d5b3 100644
--- a/mysql-test/suite/s3/my.cnf
+++ b/mysql-test/suite/s3/my.cnf
@@ -10,3 +10,15 @@ s3=ON
#s3-access-key=...
#s3-secret-key=...
#s3-region=eu-north-1
+
+##
+## Configuration for local MinIO
+##
+s3-host-name="127.0.0.1"
+# Note: s3-host-name="localhost" doesn't work. It causes
+# libmarias3 to use the wrong variant of the protocol.
+s3-bucket=storage-engine
+s3-access-key=minioadmin
+s3-secret-key=minioadmin
+s3-port=9000
+s3-use-http=ON
diff --git a/mysql-test/suite/s3/slave.cnf b/mysql-test/suite/s3/slave.cnf
index 250a46e6322..c5e7f466226 100644
--- a/mysql-test/suite/s3/slave.cnf
+++ b/mysql-test/suite/s3/slave.cnf
@@ -6,3 +6,15 @@ s3=ON
#s3-access-key=...
#s3-secret-key=...
#s3-region=eu-north-1
+
+##
+## Configuration for local MinIO
+##
+s3-host-name="127.0.0.1"
+# Note: s3-host-name="localhost" doesn't work. It causes
+# libmarias3 to use the wrong variant of the protocol.
+s3-bucket=storage-engine
+s3-access-key=minioadmin
+s3-secret-key=minioadmin
+s3-port=9000
+s3-use-http=ON