summaryrefslogtreecommitdiff
path: root/ndb/include/mgmapi
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-09-08 14:30:39 +0000
committerunknown <tomas@poseidon.(none)>2004-09-08 14:30:39 +0000
commit50729d601d12005468039051e30da89283e2887a (patch)
treed353f05816dcd846b065c0000284deaa11217b91 /ndb/include/mgmapi
parenteb72c28b9b8e7fe785e918cc1c366b4fce6fa8f6 (diff)
downloadmariadb-git-50729d601d12005468039051e30da89283e2887a.tar.gz
dded method to retrieve mysqld, ndbd, and ndb_mgmd aliases for API,MGM and DB
added sanity checks for config file changed so that ndb_0 is replaced by ndb_pid#### in ndb files added error_string for to some functions, alloc_node_id(), start() added better error printout for failed alloc node id better error printouts for failures when starting ndb_mgmd ndb/include/mgmapi/mgmapi.h: added method to retrieve mysqld, ndbd, and ndb_mgmd aliases for API,MGM and DB ndb/src/common/mgmcommon/ConfigInfo.cpp: added sanity checks for config file ndb/src/common/mgmcommon/NdbConfig.c: changed so that ndb_0 is replaced by ndb_pid#### in ndb files ndb/src/kernel/error/ErrorReporter.cpp: removed usage of tracefile early in startup (when it's normally filled with zeroes) ndb/src/mgmapi/mgmapi.cpp: added method to retrieve mysqld, ndbd, and ndb_mgmd aliases for API,MGM and DB ndb/src/mgmsrv/MgmtSrvr.cpp: added error_string for to some functions, alloc_node_id(), start() ndb/src/mgmsrv/MgmtSrvr.hpp: added error_string for to some functions, alloc_node_id(), start() ndb/src/mgmsrv/Services.cpp: added better error printout for failed alloc node id ndb/src/mgmsrv/main.cpp: better error printouts for failures when starting ndb_mgmd
Diffstat (limited to 'ndb/include/mgmapi')
-rw-r--r--ndb/include/mgmapi/mgmapi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ndb/include/mgmapi/mgmapi.h b/ndb/include/mgmapi/mgmapi.h
index 123297b0d71..246cbd3d145 100644
--- a/ndb/include/mgmapi/mgmapi.h
+++ b/ndb/include/mgmapi/mgmapi.h
@@ -395,6 +395,14 @@ extern "C" {
const char * ndb_mgm_get_node_type_string(enum ndb_mgm_node_type type);
/**
+ * Convert an ndb_mgm_node_type to a alias string
+ *
+ * @param type Node type.
+ * @return NULL if invalid id.
+ */
+ const char * ndb_mgm_get_node_type_alias_string(enum ndb_mgm_node_type type, const char **str);
+
+ /**
* Convert a string to a ndb_mgm_node_status
*
* @param status NDB node status string.