diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-04-15 23:06:03 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-04-15 23:06:03 -0400 |
commit | 3c4668c519999e002182a8c48cde93c3ebfaddd7 (patch) | |
tree | 07242f96a2d37e011dbbcf8cccd88ce6b7113186 /scripts/wsrep_sst_mysqldump.sh | |
parent | d051f6c36beaf6c7ea269d6c174cca7482f3e823 (diff) | |
download | mariadb-git-3c4668c519999e002182a8c48cde93c3ebfaddd7.tar.gz |
wsrep_sst_mysqldump : Fix server version and a syntax error
Diffstat (limited to 'scripts/wsrep_sst_mysqldump.sh')
-rw-r--r-- | scripts/wsrep_sst_mysqldump.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/wsrep_sst_mysqldump.sh b/scripts/wsrep_sst_mysqldump.sh index a52a9290f15..d7fb6756663 100644 --- a/scripts/wsrep_sst_mysqldump.sh +++ b/scripts/wsrep_sst_mysqldump.sh @@ -97,7 +97,7 @@ DROP PREPARE stmt;" SET_START_POSITION="SET GLOBAL wsrep_start_position='$WSREP_SST_OPT_GTID';" SET_WSREP_GTID_DOMAIN_ID="" -if [ -n WSREP_SST_OPT_GTID_DOMAIN_ID] +if [ -n $WSREP_SST_OPT_GTID_DOMAIN_ID ] then SET_WSREP_GTID_DOMAIN_ID=" SET @val = (SELECT GLOBAL_VALUE FROM INFORMATION_SCHEMA.SYSTEM_VARIABLES WHERE VARIABLE_NAME = 'WSREP_GTID_STRICT_MODE' AND GLOBAL_VALUE > 0); @@ -129,7 +129,7 @@ SET_GTID_BINLOG_STATE="" SQL_LOG_BIN_OFF="" # Safety check -if echo $SERVER_VERSION | grep '^10.0' > /dev/null +if echo $SERVER_VERSION | grep '^10.1' > /dev/null 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 |