mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
fixes in connect_client thread. g_eventLogger usage, correct condition on calling connect on Transporter
ndb/src/common/transporter/TransporterRegistry.cpp: Only check that we have a port number before attempting a transporter connect
This commit is contained in:
parent
0cc89c6b5f
commit
a975cbfdd9
1 changed files with 7 additions and 7 deletions
|
@ -1215,17 +1215,17 @@ 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) "
|
||||||
t->getRemoteNodeId(),
|
"error: %d. Retrying...",
|
||||||
t->getLocalNodeId(),
|
t->getRemoteNodeId(),
|
||||||
t->get_s_port());
|
t->getLocalNodeId(),
|
||||||
|
t->get_s_port());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If dynamic, get the port for connecting from the management server
|
* If dynamic, get the port for connecting from the management server
|
||||||
|
|
Loading…
Add table
Reference in a new issue