summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.(none)>2004-08-24 21:12:53 +0000
committerunknown <tomas@poseidon.(none)>2004-08-24 21:12:53 +0000
commitb7a13b55590ada4676607b8c88145f7f570da605 (patch)
tree2aa7f35c23e7a8bfc615d5fca22b20bc06d1ef37 /ndb
parent2ce9f883b2dcf4276aec1b9938c36343f1995ea0 (diff)
downloadmariadb-git-b7a13b55590ada4676607b8c88145f7f570da605.tar.gz
more aliases in ndb config
ndb/src/common/mgmcommon/ConfigInfo.cpp: more aliases ndb/src/common/mgmcommon/InitConfigFileParser.cpp: oops bug
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/common/mgmcommon/ConfigInfo.cpp2
-rw-r--r--ndb/src/common/mgmcommon/InitConfigFileParser.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/ndb/src/common/mgmcommon/ConfigInfo.cpp b/ndb/src/common/mgmcommon/ConfigInfo.cpp
index cfb3d066395..552b49727fb 100644
--- a/ndb/src/common/mgmcommon/ConfigInfo.cpp
+++ b/ndb/src/common/mgmcommon/ConfigInfo.cpp
@@ -29,6 +29,8 @@
const ConfigInfo::AliasPair
ConfigInfo::m_sectionNameAliases[]={
{"API", "MYSQLD"},
+ {"DB", "NDBD"},
+ {"MGM", "NDB_MGMD"},
{0, 0}
};
diff --git a/ndb/src/common/mgmcommon/InitConfigFileParser.cpp b/ndb/src/common/mgmcommon/InitConfigFileParser.cpp
index 26bb147964c..7c842508491 100644
--- a/ndb/src/common/mgmcommon/InitConfigFileParser.cpp
+++ b/ndb/src/common/mgmcommon/InitConfigFileParser.cpp
@@ -222,7 +222,7 @@ bool InitConfigFileParser::parseNameValuePair(Context& ctx, const char* line) {
char tmpLine[MAX_LINE_LENGTH];
char fname[MAX_LINE_LENGTH], rest[MAX_LINE_LENGTH];
char* t;
- const char *separator_list[]= {":", "="};
+ const char *separator_list[]= {":", "=", 0};
const char *separator= 0;
if (ctx.m_currentSection == NULL){
@@ -235,7 +235,7 @@ bool InitConfigFileParser::parseNameValuePair(Context& ctx, const char* line) {
// *************************************
// Check if a separator exists in line
// *************************************
- for(int i= 0; i < sizeof(separator_list); i++) {
+ for(int i= 0; separator_list[i] != 0; i++) {
if(strchr(tmpLine, separator_list[i][0])) {
separator= separator_list[i];
break;
@@ -522,7 +522,7 @@ InitConfigFileParser::parseDefaultSectionHeader(const char* line) const {
if (no != 2) return NULL;
// Not correct keyword at end
- if (!strcmp(token2, "DEFAULT") == 0) return NULL;
+ if (!strcasecmp(token2, "DEFAULT") == 0) return NULL;
if(m_info->getInfo(token1)){
return strdup(token1);