Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5f2728d5
Commit
5f2728d5
authored
Aug 24, 2020
by
Erol Guven
Committed by
Vladislav Vaintroub
Sep 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define variable to override endpoint url
parent
897b51db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
plugin/aws_key_management/aws_key_management_plugin.cc
plugin/aws_key_management/aws_key_management_plugin.cc
+11
-0
No files found.
plugin/aws_key_management/aws_key_management_plugin.cc
View file @
5f2728d5
...
...
@@ -81,6 +81,7 @@ static unsigned long key_spec;
static
unsigned
long
log_level
;
static
int
rotate_key
;
static
int
request_timeout
;
static
char
*
endpoint_url
;
#ifndef DBUG_OFF
#define WITH_AWS_MOCK 1
...
...
@@ -229,6 +230,10 @@ static int aws_init()
{
clientConfiguration
.
region
=
region
;
}
if
(
endpoint_url
&&
endpoint_url
[
0
])
{
clientConfiguration
.
endpointOverride
=
endpoint_url
;
}
if
(
request_timeout
)
{
clientConfiguration
.
requestTimeoutMs
=
request_timeout
;
...
...
@@ -711,6 +716,11 @@ static MYSQL_SYSVAR_STR(region, region,
"AWS region. For example us-east-1, or eu-central-1. If no value provided, SDK default is used."
,
NULL
,
NULL
,
""
);
static
MYSQL_SYSVAR_STR
(
endpoint_url
,
endpoint_url
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
"Used to override the default AWS API endpoint. If not set, the default will be used"
,
NULL
,
NULL
,
""
);
#if WITH_AWS_MOCK
static
MYSQL_SYSVAR_BOOL
(
mock
,
mock
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
@@ -725,6 +735,7 @@ static struct st_mysql_sys_var* settings[]= {
MYSQL_SYSVAR
(
log_level
),
MYSQL_SYSVAR
(
request_timeout
),
MYSQL_SYSVAR
(
region
),
MYSQL_SYSVAR
(
endpoint_url
),
#if WITH_AWS_MOCK
MYSQL_SYSVAR
(
mock
),
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment