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
f90ea998
Commit
f90ea998
authored
Jun 07, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jonas/src/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1-ndb
parents
a77d621a
469acb9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ndb/src/common/mgmcommon/ConfigInfo.cpp
ndb/src/common/mgmcommon/ConfigInfo.cpp
+4
-2
ndb/src/common/util/ConfigValues.cpp
ndb/src/common/util/ConfigValues.cpp
+2
-2
No files found.
ndb/src/common/mgmcommon/ConfigInfo.cpp
View file @
f90ea998
...
@@ -2497,13 +2497,15 @@ fixNodeHostname(InitConfigFileParser::Context & ctx, const char * data){
...
@@ -2497,13 +2497,15 @@ fixNodeHostname(InitConfigFileParser::Context & ctx, const char * data){
ctx
.
reportError
(
"Computer
\"
%s
\"
not declared"
ctx
.
reportError
(
"Computer
\"
%s
\"
not declared"
"- [%s] starting at line: %d"
,
"- [%s] starting at line: %d"
,
compId
,
ctx
.
fname
,
ctx
.
m_sectionLineno
);
compId
,
ctx
.
fname
,
ctx
.
m_sectionLineno
);
return
false
;
}
}
const
char
*
hostname
;
const
char
*
hostname
;
if
(
!
computer
->
get
(
"HostName"
,
&
hostname
)){
if
(
!
computer
->
get
(
"HostName"
,
&
hostname
)){
ctx
.
reportError
(
"HostName missing in [COMPUTER]
Id: %s
"
ctx
.
reportError
(
"HostName missing in [COMPUTER]
(Id: %d)
"
"- [%s] starting at line: %d"
,
"
- [%s] starting at line: %d"
,
compId
,
ctx
.
fname
,
ctx
.
m_sectionLineno
);
compId
,
ctx
.
fname
,
ctx
.
m_sectionLineno
);
return
false
;
}
}
require
(
ctx
.
m_currentSection
->
put
(
"HostName"
,
hostname
));
require
(
ctx
.
m_currentSection
->
put
(
"HostName"
,
hostname
));
...
...
ndb/src/common/util/ConfigValues.cpp
View file @
f90ea998
...
@@ -193,7 +193,7 @@ ConfigValues::Iterator::set(Uint32 key, const char * value){
...
@@ -193,7 +193,7 @@ ConfigValues::Iterator::set(Uint32 key, const char * value){
char
*
&
str
=
m_cfg
.
getString
(
m_cfg
.
m_values
[
pos
+
1
]);
char
*
&
str
=
m_cfg
.
getString
(
m_cfg
.
m_values
[
pos
+
1
]);
free
(
str
);
free
(
str
);
str
=
strdup
(
value
);
str
=
strdup
(
value
?
value
:
""
);
return
true
;
return
true
;
}
}
...
@@ -457,7 +457,7 @@ ConfigValuesFactory::put(const ConfigValues::Entry & entry){
...
@@ -457,7 +457,7 @@ ConfigValuesFactory::put(const ConfigValues::Entry & entry){
case
ConfigValues
:
:
StringType
:
{
case
ConfigValues
:
:
StringType
:
{
Uint32
index
=
m_cfg
->
m_stringCount
++
;
Uint32
index
=
m_cfg
->
m_stringCount
++
;
m_cfg
->
m_values
[
pos
+
1
]
=
index
;
m_cfg
->
m_values
[
pos
+
1
]
=
index
;
m_cfg
->
getString
(
index
)
=
strdup
(
entry
.
m_string
);
m_cfg
->
getString
(
index
)
=
strdup
(
entry
.
m_string
?
entry
.
m_string
:
""
);
m_freeKeys
--
;
m_freeKeys
--
;
m_freeData
-=
sizeof
(
char
*
);
m_freeData
-=
sizeof
(
char
*
);
DEBUG
printf
(
"Putting at: %d(%d) (loop = %d) key: %d value(%d): %s
\n
"
,
DEBUG
printf
(
"Putting at: %d(%d) (loop = %d) key: %d value(%d): %s
\n
"
,
...
...
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