From 2eb2383ed022ec8ec591f4dde9565b7415f11351 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Feb 2005 20:46:34 +0100 Subject: reuse nodeid if ndbd is restarted mysql-test/mysql-test-run.pl: start and exit fix for ndbcluster --- ndb/src/mgmapi/mgmapi.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ndb/src/mgmapi') diff --git a/ndb/src/mgmapi/mgmapi.cpp b/ndb/src/mgmapi/mgmapi.cpp index 5a95c6e9ac1..68106c4689d 100644 --- a/ndb/src/mgmapi/mgmapi.cpp +++ b/ndb/src/mgmapi/mgmapi.cpp @@ -1720,6 +1720,15 @@ ndb_mgm_destroy_configuration(struct ndb_mgm_configuration *cfg) } } +extern "C" +int +ndb_mgm_set_configuration_nodeid(NdbMgmHandle handle, int nodeid) +{ + CHECK_HANDLE(handle, -1); + handle->cfg._ownNodeId= nodeid; + return 0; +} + extern "C" int ndb_mgm_get_configuration_nodeid(NdbMgmHandle handle) -- cgit v1.2.1