mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
moved LocalConfig out of config retriver
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
*/
|
||||
class ConfigRetriever {
|
||||
public:
|
||||
ConfigRetriever(Uint32 version, Uint32 nodeType);
|
||||
ConfigRetriever(LocalConfig &local_config, Uint32 version, Uint32 nodeType);
|
||||
~ConfigRetriever();
|
||||
|
||||
/**
|
||||
@ -54,16 +54,6 @@ public:
|
||||
|
||||
const char * getErrorString();
|
||||
|
||||
/**
|
||||
* Sets connectstring which can be used instead of local config file
|
||||
*/
|
||||
void setConnectString(const char * connectString);
|
||||
|
||||
/**
|
||||
* Sets name of local config file (usually not needed)
|
||||
*/
|
||||
void setLocalConfigFileName(const char * connectString);
|
||||
|
||||
/**
|
||||
* @return Node id of this node (as stated in local config or connectString)
|
||||
*/
|
||||
@ -93,12 +83,9 @@ private:
|
||||
|
||||
void setError(ErrorType, const char * errorMsg);
|
||||
|
||||
BaseString _localConfigFileName;
|
||||
struct LocalConfig _localConfig;
|
||||
struct LocalConfig& _localConfig;
|
||||
Uint32 _ownNodeId;
|
||||
|
||||
BaseString m_connectString;
|
||||
|
||||
Uint32 m_version;
|
||||
Uint32 m_node_type;
|
||||
NdbMgmHandle m_handle;
|
||||
|
Reference in New Issue
Block a user