summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Yurchenko <ayurchen@gmail.com>2014-12-10 01:45:50 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2015-05-04 13:04:52 -0400
commitc72ed05cdc215c14e41d0466a3d50d2c1a3a2033 (patch)
tree16c13709376c3b73148b52a3bb0568c696242c37 /scripts
parent822c00536d461d56e81dd9c519ec5ec1cde9536a (diff)
downloadmariadb-git-c72ed05cdc215c14e41d0466a3d50d2c1a3a2033.tar.gz
This commit
* improves MySQL client version check making it no less than required as opposed to exactly as required. * adds event table copying to ensure same results as with rsync SST.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_mysqldump.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/wsrep_sst_mysqldump.sh b/scripts/wsrep_sst_mysqldump.sh
index 53371765f66..e21e1cd01bc 100644
--- a/scripts/wsrep_sst_mysqldump.sh
+++ b/scripts/wsrep_sst_mysqldump.sh
@@ -54,7 +54,8 @@ then
fi
# Check client version
-if ! $MYSQL_CLIENT --version | grep 'Distrib 5.5' >/dev/null
+CLIENT_MINOR=$(mysql --version | cut -d ' ' -f 6 | cut -d '.' -f 2)
+if [ $CLIENT_MINOR -lt "5" ]
then
$MYSQL_CLIENT --version >&2
wsrep_log_error "this operation requires MySQL client version 5.5.x"
@@ -75,7 +76,7 @@ STOP_WSREP="SET wsrep_on=OFF;"
MYSQLDUMP="$MYSQLDUMP $AUTH -S$WSREP_SST_OPT_SOCKET \
--add-drop-database --add-drop-table --skip-add-locks --create-options \
--disable-keys --extended-insert --skip-lock-tables --quick --set-charset \
---skip-comments --flush-privileges --all-databases"
+--skip-comments --flush-privileges --all-databases --events"
# mysqldump cannot restore CSV tables, fix this issue
CSV_TABLES_FIX="