Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
43a550ae
Commit
43a550ae
authored
Jul 19, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printout of cluster config to use same tokens as documentation
parent
ac2209a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+13
-2
ndb/src/mgmsrv/ConfigInfo.hpp
ndb/src/mgmsrv/ConfigInfo.hpp
+2
-1
No files found.
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
43a550ae
...
@@ -2367,7 +2367,15 @@ ConfigInfo::isSection(const char * section) const {
...
@@ -2367,7 +2367,15 @@ ConfigInfo::isSection(const char * section) const {
}
}
const
char
*
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
++
)
for
(
int
i
=
0
;
m_sectionNameAliases
[
i
].
name
!=
0
;
i
++
)
if
(
!
strcasecmp
(
section
,
m_sectionNameAliases
[
i
].
alias
))
if
(
!
strcasecmp
(
section
,
m_sectionNameAliases
[
i
].
alias
))
return
m_sectionNameAliases
[
i
].
name
;
return
m_sectionNameAliases
[
i
].
name
;
...
@@ -3416,7 +3424,10 @@ saveInConfigValues(InitConfigFileParser::Context & ctx, const char * data){
...
@@ -3416,7 +3424,10 @@ saveInConfigValues(InitConfigFileParser::Context & ctx, const char * data){
}
}
if
(
g_print_full_config
)
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
;
Uint32
no
=
0
;
ctx
.
m_userProperties
.
get
(
"$Section"
,
id
,
&
no
);
ctx
.
m_userProperties
.
get
(
"$Section"
,
id
,
&
no
);
...
...
ndb/src/mgmsrv/ConfigInfo.hpp
View file @
43a550ae
...
@@ -105,7 +105,8 @@ public:
...
@@ -105,7 +105,8 @@ public:
* @note Result is not defined if section/name are wrong!
* @note Result is not defined if section/name are wrong!
*/
*/
bool
verify
(
const
Properties
*
secti
,
const
char
*
fname
,
Uint64
value
)
const
;
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
;
bool
isSection
(
const
char
*
)
const
;
const
char
*
getDescription
(
const
Properties
*
sec
,
const
char
*
fname
)
const
;
const
char
*
getDescription
(
const
Properties
*
sec
,
const
char
*
fname
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment