Commit b513b68c authored by stewart@mysql.com's avatar stewart@mysql.com

small build fix for some compilers

parent 2b57e704
...@@ -336,6 +336,7 @@ ConfigRetriever::setNodeId(Uint32 nodeid) ...@@ -336,6 +336,7 @@ ConfigRetriever::setNodeId(Uint32 nodeid)
Uint32 Uint32
ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds) ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds)
{ {
int res;
_ownNodeId= 0; _ownNodeId= 0;
if(m_handle != 0) if(m_handle != 0)
{ {
...@@ -345,7 +346,7 @@ ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds) ...@@ -345,7 +346,7 @@ ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds)
if(!ndb_mgm_connect(m_handle, 0, 0, 0)) if(!ndb_mgm_connect(m_handle, 0, 0, 0))
goto next; goto next;
int res= ndb_mgm_alloc_nodeid(m_handle, m_version, m_node_type); res= ndb_mgm_alloc_nodeid(m_handle, m_version, m_node_type);
if(res >= 0) if(res >= 0)
return _ownNodeId= (Uint32)res; return _ownNodeId= (Uint32)res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment