summaryrefslogtreecommitdiff
path: root/ndb/include/mgmcommon/ConfigRetriever.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/include/mgmcommon/ConfigRetriever.hpp')
-rw-r--r--ndb/include/mgmcommon/ConfigRetriever.hpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/ndb/include/mgmcommon/ConfigRetriever.hpp b/ndb/include/mgmcommon/ConfigRetriever.hpp
index f9f8904b65c..a584c394f45 100644
--- a/ndb/include/mgmcommon/ConfigRetriever.hpp
+++ b/ndb/include/mgmcommon/ConfigRetriever.hpp
@@ -28,7 +28,7 @@
*/
class ConfigRetriever {
public:
- ConfigRetriever(Uint32 version, Uint32 nodeType);
+ ConfigRetriever(LocalConfig &local_config, Uint32 version, Uint32 nodeType);
~ConfigRetriever();
/**
@@ -55,16 +55,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)
*/
Uint32 allocNodeId();
@@ -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;