From b9e1c443b8876ff1ca7e27f57687f2523f212b83 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Jan 2006 07:40:15 +0100 Subject: [PATCH] bug#15619 - ndb_autodiscover sometimes fails ndb/src/mgmsrv/MgmtSrvr.cpp: Make sure that node allocating id is allowed to transporter connect --- ndb/src/mgmsrv/MgmtSrvr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ndb/src/mgmsrv/MgmtSrvr.cpp b/ndb/src/mgmsrv/MgmtSrvr.cpp index 34a0adf46b9..816b71bd816 100644 --- a/ndb/src/mgmsrv/MgmtSrvr.cpp +++ b/ndb/src/mgmsrv/MgmtSrvr.cpp @@ -1868,6 +1868,16 @@ MgmtSrvr::alloc_node_id(NodeId * nodeId, m_connect_address[id_found].s_addr= 0; } m_reserved_nodes.set(id_found); + if (theFacade && id_found != theFacade->ownId()) + { + /** + * Make sure we're ready to accept connections from this node + */ + theFacade->lock_mutex(); + theFacade->doConnect(id_found); + theFacade->unlock_mutex(); + } + char tmp_str[128]; m_reserved_nodes.getText(tmp_str); g_eventLogger.info("Mgmt server state: nodeid %d reserved for ip %s, m_reserved_nodes %s.",