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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c9abae2c
Commit
c9abae2c
authored
Jul 19, 2005
by
tulin@dl145b.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printout of cluster config to use same tokens as documentation
parent
2f01676b
Changes
2
Hide 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 @
c9abae2c
...
@@ -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 @
c9abae2c
...
@@ -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