mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
wl 1748
ndb/include/kernel/NodeInfo.hpp: alligning node numbering ndb/include/kernel/NodeState.hpp: added connected nodes to NodeState ndb/include/kernel/signaldata/ApiRegSignalData.hpp: moved to NodeState ndb/include/mgmapi/mgmapi.h: alligning node numbering ndb/include/mgmapi/mgmapi_config_parameters.h: new config port_base param on system ndb/include/util/Bitmask.hpp: POD Bitmask ndb/include/util/SocketAuthenticator.hpp: SocketAut fix ndb/src/common/mgmcommon/ConfigInfo.cpp: added new config param ndb/src/common/transporter/Transporter.cpp: alligning node numbering ndb/src/common/transporter/TransporterRegistry.cpp: alligning node numbering ndb/src/common/util/SocketAuthenticator.cpp: alligning node numbering ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: moved connected nodes to NodeState ndb/src/mgmsrv/MgmtSrvr.cpp: allocation and delallocation of resources in mgmsrvr connected bitmask on each node status together with reserved nodes that are reserved as long as session is active + check that hostname is same as client name ndb/src/mgmsrv/MgmtSrvr.hpp: allocation and delallocation of resources in mgmsrvr connected bitmask on each node status together with reserved nodes that are reserved as long as session is active ndb/src/mgmsrv/Services.cpp: added destuctor for apisession ndb/src/mgmsrv/Services.hpp: .. ndb/src/mgmsrv/main.cpp: print node id ndb/src/ndbapi/ClusterMgr.cpp: .. ndb/src/ndbapi/ClusterMgr.hpp: ..
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#define NODE_INFO_HPP
|
||||
|
||||
#include <NdbOut.hpp>
|
||||
#include <mgmapi_config_parameters.h>
|
||||
|
||||
class NodeInfo {
|
||||
public:
|
||||
@ -27,10 +28,10 @@ public:
|
||||
* NodeType
|
||||
*/
|
||||
enum NodeType {
|
||||
DB = 0, ///< Database node
|
||||
API = 1, ///< NDB API node
|
||||
MGM = 2, ///< Management node (incl. NDB API)
|
||||
REP = 3, ///< Replication node (incl. NDB API)
|
||||
DB = NODE_TYPE_DB, ///< Database node
|
||||
API = NODE_TYPE_API, ///< NDB API node
|
||||
MGM = NODE_TYPE_MGM, ///< Management node (incl. NDB API)
|
||||
REP = NODE_TYPE_REP, ///< Replication node (incl. NDB API)
|
||||
INVALID = 255 ///< Invalid type
|
||||
};
|
||||
NodeType getType() const;
|
||||
|
@ -18,6 +18,7 @@
|
||||
#define NODE_STATE_HPP
|
||||
|
||||
#include <NdbOut.hpp>
|
||||
#include <NodeBitmask.hpp>
|
||||
|
||||
class NodeState {
|
||||
public:
|
||||
@ -99,7 +100,7 @@ public:
|
||||
/**
|
||||
* Length in 32-bit words
|
||||
*/
|
||||
static const Uint32 DataLength = 8;
|
||||
static const Uint32 DataLength = 8 + NdbNodeBitmask::Size;
|
||||
|
||||
/**
|
||||
* Constructor(s)
|
||||
@ -146,6 +147,8 @@ public:
|
||||
Uint32 singleUserMode;
|
||||
Uint32 singleUserApi; //the single user node
|
||||
|
||||
BitmaskPOD<NdbNodeBitmask::Size> m_connected_nodes;
|
||||
|
||||
void setDynamicId(Uint32 dynamic);
|
||||
void setNodeGroup(Uint32 group);
|
||||
void setSingleUser(Uint32 s);
|
||||
@ -182,6 +185,7 @@ NodeState::NodeState(){
|
||||
dynamicId = 0xFFFFFFFF;
|
||||
singleUserMode = 0;
|
||||
singleUserApi = 0xFFFFFFFF;
|
||||
m_connected_nodes.clear();
|
||||
}
|
||||
|
||||
inline
|
||||
|
@ -80,15 +80,13 @@ class ApiRegConf {
|
||||
friend class ClusterMgr;
|
||||
|
||||
public:
|
||||
STATIC_CONST( SignalLength = 3 + NodeState::DataLength +
|
||||
NdbNodeBitmask::Size );
|
||||
STATIC_CONST( SignalLength = 3 + NodeState::DataLength );
|
||||
private:
|
||||
|
||||
Uint32 qmgrRef;
|
||||
Uint32 version; // Version of NDB node
|
||||
Uint32 apiHeartbeatFrequency;
|
||||
NodeState nodeState;
|
||||
Bitmask<NdbNodeBitmask::Size>::Data connected_nodes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user