Commit 5079d69d authored by Nirbhay Choubey's avatar Nirbhay Choubey

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).
parent 25f87381
...@@ -410,11 +410,12 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len) ...@@ -410,11 +410,12 @@ size_t wsrep_guess_ip (char* buf, size_t buf_len)
WSREP_ERROR("Networking not configured, cannot receive state " WSREP_ERROR("Networking not configured, cannot receive state "
"transfer."); "transfer.");
ret= 0; ret= 0;
goto done;
} else if (INADDR_ANY != ip_type) { } else if (INADDR_ANY != ip_type) {
strncpy (buf, my_bind_addr_str, buf_len); strncpy (buf, my_bind_addr_str, buf_len);
ret= strlen(buf); ret= strlen(buf);
goto done;
} }
goto done;
} }
// Attempt 2: mysqld binds to all interfaces, try IP from wsrep_node_address. // Attempt 2: mysqld binds to all interfaces, try IP from wsrep_node_address.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment