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

BUG#15512 crash during online add of API/SQL node

parent 17cab43f
...@@ -2040,19 +2040,22 @@ Qmgr::execAPI_VERSION_REQ(Signal * signal) { ...@@ -2040,19 +2040,22 @@ Qmgr::execAPI_VERSION_REQ(Signal * signal) {
ApiVersionConf * conf = (ApiVersionConf *)req; ApiVersionConf * conf = (ApiVersionConf *)req;
if(getNodeInfo(nodeId).m_connected) if(getNodeInfo(nodeId).m_connected)
{
conf->version = getNodeInfo(nodeId).m_version; conf->version = getNodeInfo(nodeId).m_version;
struct in_addr in= globalTransporterRegistry.get_connect_address(nodeId);
conf->inet_addr= in.s_addr;
}
else else
{
conf->version = 0; conf->version = 0;
conf->inet_addr= 0;
}
conf->nodeId = nodeId; conf->nodeId = nodeId;
struct in_addr in= globalTransporterRegistry.get_connect_address(nodeId);
conf->inet_addr= in.s_addr;
sendSignal(senderRef, sendSignal(senderRef,
GSN_API_VERSION_CONF, GSN_API_VERSION_CONF,
signal, signal,
ApiVersionConf::SignalLength, JBB); ApiVersionConf::SignalLength, JBB);
} }
......
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