summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-04-06 07:31:44 +0300
committerGitHub <noreply@github.com>2018-04-06 07:31:44 +0300
commit7b115181987fb88b97ef6d3d88bb16bdbc281e40 (patch)
treee62775e6c982090a16213706c2d7af7f87357ad6
parent8b54c314863e7e9861470844e09c0453800748ae (diff)
parent42ccfd82110292a4693b760295699cd6c57bbd94 (diff)
downloadmariadb-git-7b115181987fb88b97ef6d3d88bb16bdbc281e40.tar.gz
Merge pull request #557 from grooverdan/10.0-galera-wsrep_sst_mysqldump-safety
MDEV-15023 - wsrep_sst_mysqldump: safer test of version != 5
-rw-r--r--scripts/wsrep_sst_mysqldump.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_mysqldump.sh b/scripts/wsrep_sst_mysqldump.sh
index bb3be5dda76..c2799aa3aa3 100644
--- a/scripts/wsrep_sst_mysqldump.sh
+++ b/scripts/wsrep_sst_mysqldump.sh
@@ -120,7 +120,7 @@ SET_GTID_BINLOG_STATE=""
SQL_LOG_BIN_OFF=""
# Safety check
-if echo $SERVER_VERSION | grep '^10.0' > /dev/null
+if [ ${SERVER_VERSION%%.*} != '5' ]
then
# If binary logging is enabled on the joiner node, we need to copy donor's
# gtid_binlog_state to joiner. In order to do that, a RESET MASTER must be