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:
@ -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
|
||||
|
Reference in New Issue
Block a user