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
89b0d5cb
Commit
89b0d5cb
authored
Oct 16, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13968 sst fails with "WSREP_SST_OPT_PORT: readonly variable"
Backport from 10.2:
4c2c057d
and
f7090df7
parent
de55a7d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
scripts/wsrep_sst_common.sh
scripts/wsrep_sst_common.sh
+12
-1
No files found.
scripts/wsrep_sst_common.sh
View file @
89b0d5cb
...
...
@@ -43,7 +43,7 @@ case "$1" in
else
readonly
WSREP_SST_OPT_HOST_UNESCAPED
=
${
WSREP_SST_OPT_HOST
}
fi
readonly
WSREP_SST_OPT_PORT
=
$(
echo
$WSREP_SST_OPT_ADDR
|
\
readonly
WSREP_SST_OPT_
ADDR_
PORT
=
$(
echo
$WSREP_SST_OPT_ADDR
|
\
cut
-d
']'
-f
2 |
cut
-s
-d
':'
-f
2 |
cut
-d
'/'
-f
1
)
readonly
WSREP_SST_OPT_PATH
=
${
WSREP_SST_OPT_ADDR
#*/
}
readonly
WSREP_SST_OPT_MODULE
=
${
WSREP_SST_OPT_PATH
%%/*
}
...
...
@@ -126,6 +126,17 @@ done
readonly
WSREP_SST_OPT_BYPASS
readonly
WSREP_SST_OPT_BINLOG
if
[
-n
"
${
WSREP_SST_OPT_ADDR_PORT
:-}
"
]
;
then
if
[
-n
"
${
WSREP_SST_OPT_PORT
:-}
"
]
;
then
if
[
"
$WSREP_SST_OPT_PORT
"
!=
"
$WSREP_SST_OPT_ADDR_PORT
"
]
;
then
wsrep_log_error
"port in --port=
$WSREP_SST_OPT_PORT
differs from port in --address=
$WSREP_SST_OPT_ADDR
"
exit
2
fi
else
readonly
WSREP_SST_OPT_PORT
=
"
$WSREP_SST_OPT_ADDR_PORT
"
fi
fi
# try to use my_print_defaults, mysql and mysqldump that come with the sources
# (for MTR suite)
SCRIPTS_DIR
=
"
$(
cd
$(
dirname
"
$0
"
)
;
pwd
-P
)
"
...
...
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