percona-toolkit
percona-toolkit copied to clipboard
Fix for PT-1799
When slave DSN received from the processlist any non-default port is removed by the _resolve_recursion_methods function. Therefore printing port if slave_user is used makes sense only for the original DSN, specified as an argument to the tool. For all slaves, found by a recursion method, the port is not defined. This pull request checks if the port is defined and prints it only if it is.