summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi/ClusterMgr.cpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-09-10 14:55:42 +0000
committerunknown <tomas@poseidon.(none)>2004-09-10 14:55:42 +0000
commit9c71d59d080647cfc3eb91cd4d514dab2362aead (patch)
treec5eefa36e50f4441ed34ff66f1ccc5e98b554ac6 /ndb/src/ndbapi/ClusterMgr.cpp
parente2252a49f7393076107ee5e228be79660e7faecb (diff)
downloadmariadb-git-9c71d59d080647cfc3eb91cd4d514dab2362aead.tar.gz
bug#5435
Diffstat (limited to 'ndb/src/ndbapi/ClusterMgr.cpp')
-rw-r--r--ndb/src/ndbapi/ClusterMgr.cpp8
1 files changed, 3 insertions, 5 deletions
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; i<MAX_NODES; i++){
if(theNodes[i].defined && theNodes[i].nfCompleteRep == false){
- rep->failedNodeId = i;
- execNF_COMPLETEREP(theData);
+ rep.failedNodeId = i;
+ execNF_COMPLETEREP((Uint32*)&rep);
}
}
}