Use correct binlog position in mm_mysqlmon
Position 310 is not guaranteed to always exist on the master if the binlog is just created. Position 4 will always be a valid position.
This commit is contained in:
@ -84,7 +84,7 @@ void check_group(TestConnections *Test, const char *server, const char *group)
|
|||||||
void change_master(TestConnections *Test, int slave, int master)
|
void change_master(TestConnections *Test, int slave, int master)
|
||||||
{
|
{
|
||||||
execute_query(Test->repl->nodes[slave], "CHANGE MASTER TO master_host='%s', master_port=3306, "
|
execute_query(Test->repl->nodes[slave], "CHANGE MASTER TO master_host='%s', master_port=3306, "
|
||||||
"master_log_file='mar-bin.000001', master_log_pos=310, master_user='repl', master_password='repl';START SLAVE",
|
"master_log_file='mar-bin.000001', master_log_pos=4, master_user='repl', master_password='repl';START SLAVE",
|
||||||
Test->repl->IP[master], Test->repl->user_name, Test->repl->password);
|
Test->repl->IP[master], Test->repl->user_name, Test->repl->password);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user