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 84747dfc9f
commit 1a3c43bf65

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: