summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi/ClusterMgr.cpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-03-04 09:55:16 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-03-04 09:55:16 +0100
commit9cc85f40af7eebee4884d916a549303e17d44c82 (patch)
tree7f56b88373cff1e28cfddcebf1fd06f5b95f95e1 /ndb/src/ndbapi/ClusterMgr.cpp
parentea0e5c32e4f86cfbd084f29a56d44ded02d42e61 (diff)
downloadmariadb-git-9cc85f40af7eebee4884d916a549303e17d44c82.tar.gz
get connected nodes correct earlier for correct node id allocation
Diffstat (limited to 'ndb/src/ndbapi/ClusterMgr.cpp')
-rw-r--r--ndb/src/ndbapi/ClusterMgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/ClusterMgr.cpp b/ndb/src/ndbapi/ClusterMgr.cpp
index 183cb6488f8..71938e27037 100644
--- a/ndb/src/ndbapi/ClusterMgr.cpp
+++ b/ndb/src/ndbapi/ClusterMgr.cpp
@@ -260,6 +260,7 @@ ClusterMgr::Node::Node()
: m_state(NodeState::SL_NOTHING) {
compatible = nfCompleteRep = true;
connected = defined = m_alive = false;
+ m_state.m_connected_nodes.clear();
}
/******************************************************************************
@@ -434,6 +435,9 @@ ClusterMgr::reportDisconnected(NodeId nodeId){
noOfConnectedNodes--;
theNodes[nodeId].connected = false;
+
+ theNodes[nodeId].m_state.m_connected_nodes.clear();
+
reportNodeFailed(nodeId);
}