summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2021-03-19 03:24:55 +0100
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2021-03-19 15:24:06 +0100
commita74fa579b94bb35127ae8f55a50541ad8e558284 (patch)
treeab8169adf739079ccb2aa51f04d706104f8f67f7 /scripts
parent4e825b0e8ae07e1e847cbbc3c5b7203ae5b96a89 (diff)
downloadmariadb-git-a74fa579b94bb35127ae8f55a50541ad8e558284.tar.gz
MDEV-24903: mariabackup SST fails while adding --log-bin in startup command
Mariabackup SST fails if "--log-bin" option is added with no value to command line parameters at server startup. This is because the SST scripts do not correctly interpret the "--- log-bin" option without a value. This patch adds correct handling of the "--log-bin" parameter without value to the general part of the parameter parsing (for SST scripts) and fixes the problem. Also added a test that checks the correct operation of the server after the fix.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wsrep_sst_common.sh b/scripts/wsrep_sst_common.sh
index f5adf0b0fd8..443cb26ab64 100644
--- a/scripts/wsrep_sst_common.sh
+++ b/scripts/wsrep_sst_common.sh
@@ -212,6 +212,9 @@ case "$1" in
"$option" != "--port" && \
"$option" != "--socket" ]]; then
value=${1#*=}
+ if [ "$value" == "$1" ]; then
+ value=""
+ fi
case "$option" in
'--innodb-data-home-dir')
if [ -z "$INNODB_DATA_HOME_DIR_ARG" ]; then