[PATCH] BUG#29063 mgmapi: connect timeout set incorrectly

correctly divide timeout by 1000 to convert to seconds for SocketClient

Index: ndb-work/storage/ndb/src/mgmapi/mgmapi.cpp
===================================================================


storage/ndb/src/mgmapi/mgmapi.cpp:
  BUG#29063 mgmapi: connect timeout set incorrectly
This commit is contained in:
unknown 2007-06-13 22:54:14 +10:00
parent e42de77219
commit 495a9490bd

View file

@ -524,7 +524,7 @@ ndb_mgm_connect(NdbMgmHandle handle, int no_retries,
NDB_SOCKET_TYPE sockfd= NDB_INVALID_SOCKET;
Uint32 i;
SocketClient s(0, 0);
s.set_connect_timeout(handle->timeout);
s.set_connect_timeout((handle->timeout+999)/1000);
if (!s.init())
{
fprintf(handle->errstream,