MXS-3114: Fix duplicate listener check
Backporting to 2.4. The listener search used the host and port for listeners that used sockets and vice versa. This caused multiple listeners with sockets to fail to be created.
This commit is contained in:
@ -1056,8 +1056,8 @@ bool runtime_create_listener(Service* service,
|
||||
std::string reason;
|
||||
|
||||
SListener old_listener = use_socket ?
|
||||
listener_find_by_address(params.get_string(CN_ADDRESS), params.get_integer(CN_PORT)) :
|
||||
listener_find_by_socket(params.get_string(CN_SOCKET));
|
||||
listener_find_by_socket(params.get_string(CN_SOCKET)) :
|
||||
listener_find_by_address(params.get_string(CN_ADDRESS), params.get_integer(CN_PORT));
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user