summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2007-01-23 17:19:27 +1100
committerunknown <stewart@willster.(none)>2007-01-23 17:19:27 +1100
commit68ab0996b4e8443ca248cad3091d1d51485acb52 (patch)
treeb328688fa6abf636a64ac7e4c4b4782131ca5ac3 /ndb
parent8deeb2f95b7585d98c0252db767a87b9d3aa0326 (diff)
downloadmariadb-git-68ab0996b4e8443ca248cad3091d1d51485acb52.tar.gz
round up Transporter connect timeout
ndb/src/common/transporter/Transporter.cpp: change so timeout is rounded up to nearest second
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/transporter/Transporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/common/transporter/Transporter.cpp b/ndb/src/common/transporter/Transporter.cpp
index d1e88e303e7..20b6be8ce26 100644
--- a/ndb/src/common/transporter/Transporter.cpp
+++ b/ndb/src/common/transporter/Transporter.cpp
@@ -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;
}