round up Transporter connect timeout

ndb/src/common/transporter/Transporter.cpp:
  change so timeout is rounded up to nearest second
This commit is contained in:
unknown 2007-01-23 17:19:27 +11:00
parent 8deeb2f95b
commit 68ab0996b4

View File

@ -84,7 +84,7 @@ Transporter::Transporter(TransporterRegistry &t_reg,
new SocketAuthSimple("ndbd",
"ndbd passwd"));
m_socket_client->set_connect_timeout(m_timeOutMillis/1000);
m_socket_client->set_connect_timeout((m_timeOutMillis+999)/1000);
}
DBUG_VOID_RETURN;
}