Commit 00e121f4 authored by stewart@mysql.com's avatar stewart@mysql.com

fixes in connect_client thread. g_eventLogger usage, correct condition on...

fixes in connect_client thread. g_eventLogger usage, correct condition on calling connect on Transporter
parent d3539561
...@@ -1215,14 +1215,14 @@ TransporterRegistry::start_clients_thread() ...@@ -1215,14 +1215,14 @@ TransporterRegistry::start_clients_thread()
/** /**
* First, we try to connect (if we have a port number). * First, we try to connect (if we have a port number).
*/ */
if (theTransporterTypes[nodeId] != tt_TCP_TRANSPORTER if (t->get_s_port())
|| t->get_s_port() > 0)
result= t->connect_client(); result= t->connect_client();
if (result<0 && t->get_s_port()!=0) if (result<0 && t->get_s_port()!=0)
ndbout_c("Error while trying to make connection (Node %u to" g_eventLogger.warning("Error while trying to make connection "
" %u via port %u) error: %d. Retrying...", "(Node %u to %u via port %u) "
"error: %d. Retrying...",
t->getRemoteNodeId(), t->getRemoteNodeId(),
t->getLocalNodeId(), t->getLocalNodeId(),
t->get_s_port()); t->get_s_port());
......
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