MASTER_PORT variable for CHANGE MASTER TO command can only accept integer value

This commit is contained in:
amree 2014-03-06 12:19:54 +08:00 committed by James Cammarata
parent e215f564c5
commit fe07ebc801

View file

@ -325,7 +325,7 @@ def main():
if master_password: if master_password:
chm.append("MASTER_PASSWORD='" + master_password + "'") chm.append("MASTER_PASSWORD='" + master_password + "'")
if master_port: if master_port:
chm.append("MASTER_PORT='" + master_port + "'") chm.append("MASTER_PORT=" + master_port)
if master_connect_retry: if master_connect_retry:
chm.append("MASTER_CONNECT_RETRY='" + master_connect_retry + "'") chm.append("MASTER_CONNECT_RETRY='" + master_connect_retry + "'")
if master_log_file: if master_log_file: