yoshinorim / mha4mysql-manager

Development tree of Master High Availability Manager and tools for MySQL (MHA), Manager part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
1.46k stars 501 forks source link

Avoid use_ip_for_change_master mismatch #46

Closed kane3 closed 9 years ago

kane3 commented 10 years ago

When the original master becomes a new slave, it always uses hostname for MASTER_HOST because it doesn't have any slave status. In such a case, the original master should refer to new master's setting. It may not the best way, but it is better.