mirror of
https://github.com/MariaDB/server.git
synced 2025-08-16 18:19:41 +00:00
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.
This commit is contained in:

committed by
Nirbhay Choubey

parent
822c00536d
commit
c72ed05cdc
@ -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="
|
||||
|
Reference in New Issue
Block a user