MDEV-8975: 10.1 Fails To Join Existing Galera Cluster

During the process of guessing the IP address, if bind-address
is INADDR_ANY, mysqld should proceed with address specified via
wsrep_node_address or use one from network interfaces.

Patch contributed by darkain (pull#115).
This commit is contained in:
Nirbhay Choubey 2015-11-05 21:52:19 -05:00
parent 25f8738112
commit 5079d69d48

View File

@ -410,11 +410,12 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len)
WSREP_ERROR("Networking not configured, cannot receive state "
"transfer.");
ret= 0;
goto done;
} else if (INADDR_ANY != ip_type) {
strncpy (buf, my_bind_addr_str, buf_len);
ret= strlen(buf);
goto done;
}
goto done;
}
// Attempt 2: mysqld binds to all interfaces, try IP from wsrep_node_address.