diff --git a/ndb/src/ndbapi/ClusterMgr.cpp b/ndb/src/ndbapi/ClusterMgr.cpp index b9947fcf0e7..3e1f0e48b1c 100644 --- a/ndb/src/ndbapi/ClusterMgr.cpp +++ b/ndb/src/ndbapi/ClusterMgr.cpp @@ -440,13 +440,11 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){ theNode.nfCompleteRep = false; if(noOfConnectedNodes == 0){ - Uint32 theData[1]; - NFCompleteRep * rep = (NFCompleteRep *)&theData[0]; - + NFCompleteRep rep; for(Uint32 i = 1; ifailedNodeId = i; - execNF_COMPLETEREP(theData); + rep.failedNodeId = i; + execNF_COMPLETEREP((Uint32*)&rep); } } }