mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 08:44:33 +01:00
Report an error if connect_client fails.
ndb/src/common/transporter/TransporterRegistry.cpp: Report an error if connect_client fails. This should never really happen, except if strange things are going on. Hit this case during development, probably good to report if it happens.
This commit is contained in:
parent
c7341b2e92
commit
d2e6def187
1 changed files with 11 additions and 5 deletions
|
@ -1209,11 +1209,17 @@ TransporterRegistry::start_clients_thread()
|
|||
else
|
||||
ndbout_c("Failed to get dynamic port to connect to: %d", res);
|
||||
}
|
||||
if(theTransporterTypes[nodeId] != tt_TCP_TRANSPORTER
|
||||
|| t->get_r_port() > 0)
|
||||
t->connect_client();
|
||||
else
|
||||
NdbSleep_MilliSleep(400);
|
||||
if (theTransporterTypes[nodeId] != tt_TCP_TRANSPORTER
|
||||
|| t->get_r_port() > 0) {
|
||||
int result = t->connect_client();
|
||||
if (result<0)
|
||||
ndbout_c("Error while trying to make connection (Node %u to"
|
||||
" %u via port %u) error: %d. Retrying...",
|
||||
t->getRemoteNodeId(),
|
||||
t->getLocalNodeId(),
|
||||
t->get_r_port());
|
||||
} else
|
||||
NdbSleep_MilliSleep(400); // wait before retrying
|
||||
}
|
||||
break;
|
||||
case DISCONNECTING:
|
||||
|
|
Loading…
Add table
Reference in a new issue