mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
printout of cluster config to use same tokens as documentation
This commit is contained in:
parent
ac2209a1f9
commit
43a550aede
2 changed files with 15 additions and 3 deletions
|
|
@ -2367,7 +2367,15 @@ ConfigInfo::isSection(const char * section) const {
|
|||
}
|
||||
|
||||
const char*
|
||||
ConfigInfo::getAlias(const char * section) const {
|
||||
ConfigInfo::nameToAlias(const char * name) {
|
||||
for (int i = 0; m_sectionNameAliases[i].name != 0; i++)
|
||||
if(!strcasecmp(name, m_sectionNameAliases[i].name))
|
||||
return m_sectionNameAliases[i].alias;
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char*
|
||||
ConfigInfo::getAlias(const char * section) {
|
||||
for (int i = 0; m_sectionNameAliases[i].name != 0; i++)
|
||||
if(!strcasecmp(section, m_sectionNameAliases[i].alias))
|
||||
return m_sectionNameAliases[i].name;
|
||||
|
|
@ -3416,7 +3424,10 @@ saveInConfigValues(InitConfigFileParser::Context & ctx, const char * data){
|
|||
}
|
||||
|
||||
if (g_print_full_config)
|
||||
printf("[%s]\n", ctx.fname);
|
||||
{
|
||||
const char *alias= ConfigInfo::nameToAlias(ctx.fname);
|
||||
printf("[%s]\n", alias ? alias : ctx.fname);
|
||||
}
|
||||
|
||||
Uint32 no = 0;
|
||||
ctx.m_userProperties.get("$Section", id, &no);
|
||||
|
|
|
|||
|
|
@ -105,7 +105,8 @@ public:
|
|||
* @note Result is not defined if section/name are wrong!
|
||||
*/
|
||||
bool verify(const Properties* secti, const char* fname, Uint64 value) const;
|
||||
const char* getAlias(const char*) const;
|
||||
static const char* nameToAlias(const char*);
|
||||
static const char* getAlias(const char*);
|
||||
bool isSection(const char*) const;
|
||||
|
||||
const char* getDescription(const Properties * sec, const char* fname) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue