From 4f675997fb4fe7b1575e07f47339f673dac06923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 2 Oct 2017 11:22:13 +0300 Subject: [PATCH] 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. --- maxscale-system-test/mm_mysqlmon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/mm_mysqlmon.cpp b/maxscale-system-test/mm_mysqlmon.cpp index d2dffeebe..f987b2692 100644 --- a/maxscale-system-test/mm_mysqlmon.cpp +++ b/maxscale-system-test/mm_mysqlmon.cpp @@ -84,7 +84,7 @@ void check_group(TestConnections *Test, const char *server, const char *group) void change_master(TestConnections *Test, int slave, int master) { 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); }