summaryrefslogtreecommitdiff
path: root/ndb/src/ndbapi
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-02-14 15:51:44 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-02-14 15:51:44 +0100
commit114487dd0844e728406b4b0872202ddb95863582 (patch)
treec46e7c6b36a6e03035a8748c14e371db79791e2b /ndb/src/ndbapi
parentc24523c87f293233a709b0c2828f4920069ba6f8 (diff)
downloadmariadb-git-114487dd0844e728406b4b0872202ddb95863582.tar.gz
make sure that the "conections are up to date" when exiting from MgmtSrvr::transporter_connect()
Make sure that the node itself is set in the m_connected_nodes when connected ndb/src/kernel/vm/Configuration.cpp: make sure we destroy the iterator before reusing the variable ndb/src/mgmsrv/MgmtSrvr.cpp: make sure that the "conections are up to date" when exiting from MgmtSrvr::transporter_connect() ndb/src/ndbapi/ClusterMgr.cpp: Make sure that the node itself is set in the m_connected_nodes when connected
Diffstat (limited to 'ndb/src/ndbapi')
-rw-r--r--ndb/src/ndbapi/ClusterMgr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/ClusterMgr.cpp b/ndb/src/ndbapi/ClusterMgr.cpp
index 41ae532164b..183cb6488f8 100644
--- a/ndb/src/ndbapi/ClusterMgr.cpp
+++ b/ndb/src/ndbapi/ClusterMgr.cpp
@@ -410,7 +410,13 @@ ClusterMgr::reportConnected(NodeId nodeId){
theNode.connected = true;
theNode.hbSent = 0;
theNode.hbCounter = 0;
-
+
+ /**
+ * make sure the node itself is marked connected even
+ * if first API_REGCONF has not arrived
+ */
+ theNode.m_state.m_connected_nodes.set(nodeId);
+
if (theNode.m_info.m_type != NodeInfo::REP) {
theNode.hbFrequency = 0;
}