summaryrefslogtreecommitdiff
path: root/ndb/src/common
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-02-16 20:46:34 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-02-16 20:46:34 +0100
commit2eb2383ed022ec8ec591f4dde9565b7415f11351 (patch)
tree0387a105d1ce4ed3221548c5d548aa627011c7de /ndb/src/common
parentc3dec835b536c59175de3c5c14a0601c711a982e (diff)
downloadmariadb-git-2eb2383ed022ec8ec591f4dde9565b7415f11351.tar.gz
reuse nodeid if ndbd is restarted
mysql-test/mysql-test-run.pl: start and exit fix for ndbcluster
Diffstat (limited to 'ndb/src/common')
-rw-r--r--ndb/src/common/mgmcommon/ConfigRetriever.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ndb/src/common/mgmcommon/ConfigRetriever.cpp b/ndb/src/common/mgmcommon/ConfigRetriever.cpp
index db00cc1510f..fd04ad393eb 100644
--- a/ndb/src/common/mgmcommon/ConfigRetriever.cpp
+++ b/ndb/src/common/mgmcommon/ConfigRetriever.cpp
@@ -316,6 +316,12 @@ ConfigRetriever::verifyConfig(const struct ndb_mgm_configuration * conf, Uint32
return true;
}
+int
+ConfigRetriever::setNodeId(Uint32 nodeid)
+{
+ return ndb_mgm_set_configuration_nodeid(m_handle, nodeid);
+}
+
Uint32
ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds)
{