Fix failover_mysqlmon
The test should stop MaxScale when it is fixing the replication to prevent the triggering of the standalone master detection. Also removed leading spaces from the messages and fixed a possible crash with a NULL value given to `ssh_node`.
This commit is contained in:
@ -1571,7 +1571,7 @@ int Mariadb_nodes::prepare_server(int i)
|
||||
char str1[1024];
|
||||
char str2[1024];
|
||||
|
||||
ssh_node(i, true, stop_db_command[i]);
|
||||
ssh_node(i, true, "%s", stop_db_command[i]);
|
||||
sleep(5);
|
||||
ssh_node(i, true, "sed -i \"s/bind-address/#bind-address/g\" /etc/mysql/my.cnf.d/*.cnf");
|
||||
ssh_node(i, true, "ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/usr.sbin.mysqld; sudo service apparmor restart");
|
||||
|
||||
Reference in New Issue
Block a user