mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
[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:
parent
e42de77219
commit
495a9490bd
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue