1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-5624 mysqldump --dump-slave option does not restart the replication if the dump has failed

This commit is contained in:
Sergei Golubchik
2014-02-21 00:53:02 +01:00
parent ea0915dcad
commit 74feebcd43
3 changed files with 28 additions and 7 deletions

View File

@ -27,4 +27,13 @@ connection slave;
# Execute mysqldump with --dump-slave ,--apply-slave-statements and --include-master-host-port
--exec $MYSQL_DUMP_SLAVE --compact --dump-slave --apply-slave-statements --include-master-host-port test
#
# MDEV-5624 mysqldump --dump-slave option does not restart the replication if the dump has failed
#
slave start;
--replace_regex /MASTER_LOG_POS=[0-9]+/MASTER_LOG_POS=BINLOG_START/
--error 2
--exec $MYSQL_DUMP_SLAVE --compact --dump-slave no_such_db
slave start;
--source include/rpl_end.inc