1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-8469 Add RESET MASTER TO x to allow specification of binlog file nr

Other things:
- Avoid calling init_and_set_log_file_name() when opening binary log.
- Remove newlines early when reading from index file.
- Ensure that reset_logs() will work even if thd is 0 (Can happen on startup)
- Added thd to sart_slave_threads() for better error handling.
This commit is contained in:
Monty
2015-07-15 16:27:14 +03:00
parent df0498fd76
commit 872a953b22
16 changed files with 186 additions and 99 deletions

View File

@ -160,3 +160,12 @@ DROP TABLE t1;
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
SHOW BINLOG EVENTS;
RESET MASTER;
# Test RESET MASTER TO
RESET MASTER;
SHOW MASTER STATUS;
RESET MASTER TO 100;
SHOW MASTER STATUS;
RESET MASTER;
SHOW MASTER STATUS;