diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2005-02-14 15:51:44 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2005-02-14 15:51:44 +0100 |
commit | 114487dd0844e728406b4b0872202ddb95863582 (patch) | |
tree | c46e7c6b36a6e03035a8748c14e371db79791e2b /ndb/src/ndbapi | |
parent | c24523c87f293233a709b0c2828f4920069ba6f8 (diff) | |
download | mariadb-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.cpp | 8 |
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; } |