diff options
author | unknown <joreland@mysql.com> | 2004-08-09 13:25:07 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-08-09 13:25:07 +0200 |
commit | 1905e1c5ac9582eae8a4b7a93bb514172cbc02fb (patch) | |
tree | be596ed5198cf692a5ceb0fa405c466e5a435e7f /ndb/src/mgmsrv/MgmtSrvr.hpp | |
parent | 89b446969ae7942861da716f84ed8e15d1231a66 (diff) | |
download | mariadb-git-1905e1c5ac9582eae8a4b7a93bb514172cbc02fb.tar.gz |
bug#4529
ndb/include/mgmcommon/ConfigRetriever.hpp:
Separate connect and all/fetch
ndb/include/mgmcommon/LocalConfig.hpp:
Use BaseString
ndb/src/common/mgmcommon/ConfigRetriever.cpp:
Separate connect and all/fetch
ndb/src/common/mgmcommon/LocalConfig.cpp:
Removed useless onlyNodeId
ndb/src/kernel/main.cpp:
Separeted Configuration fetch/setup
ndb/src/kernel/vm/Configuration.cpp:
Separeted Configuration fetch/setup
ndb/src/kernel/vm/Configuration.hpp:
Separeted Configuration fetch/setup
ndb/src/mgmapi/mgmapi.cpp:
Fixed some return codes
ndb/src/mgmclient/main.cpp:
LocalConfig update
ndb/src/mgmsrv/MgmtSrvr.cpp:
Put mutex around reserving node'ids
ndb/src/mgmsrv/MgmtSrvr.hpp:
Put mutex around reserving node'ids
ndb/src/mgmsrv/MgmtSrvrConfig.cpp:
Changes ConfigRetreiver interface
ndb/src/mgmsrv/Services.cpp:
Allow reserve same id twice
ndb/src/mgmsrv/main.cpp:
Ignore SIGPIPE
ndb/src/ndbapi/TransporterFacade.cpp:
ConfigRetriever interface
Diffstat (limited to 'ndb/src/mgmsrv/MgmtSrvr.hpp')
-rw-r--r-- | ndb/src/mgmsrv/MgmtSrvr.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ndb/src/mgmsrv/MgmtSrvr.hpp b/ndb/src/mgmsrv/MgmtSrvr.hpp index f677cdbb2d0..661dcdfb784 100644 --- a/ndb/src/mgmsrv/MgmtSrvr.hpp +++ b/ndb/src/mgmsrv/MgmtSrvr.hpp @@ -78,6 +78,7 @@ public: // methods to reserve/allocate resources which // will be freed when running destructor void reserve_node(NodeId id); + bool is_reserved(NodeId nodeId) { return m_reserved_nodes.get(nodeId);} private: MgmtSrvr &m_mgmsrv; NodeBitmask m_reserved_nodes; @@ -465,8 +466,8 @@ public: * @return false if none found */ bool getNextNodeId(NodeId * _nodeId, enum ndb_mgm_node_type type) const ; - bool getFreeNodeId(NodeId * _nodeId, enum ndb_mgm_node_type type, - struct sockaddr *client_addr, socklen_t *client_addr_len) const ; + bool alloc_node_id(NodeId * _nodeId, enum ndb_mgm_node_type type, + struct sockaddr *client_addr, socklen_t *client_addr_len); /** * |