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
92e2b9ed
Commit
92e2b9ed
authored
Sep 01, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #12043, do not core on misconfig unless debug compiled
parent
fcc48eb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+15
-5
No files found.
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
92e2b9ed
...
@@ -2136,7 +2136,17 @@ const int ConfigInfo::m_NoOfParams = sizeof(m_ParamInfo) / sizeof(ParamInfo);
...
@@ -2136,7 +2136,17 @@ const int ConfigInfo::m_NoOfParams = sizeof(m_ParamInfo) / sizeof(ParamInfo);
/****************************************************************************
/****************************************************************************
* Ctor
* Ctor
****************************************************************************/
****************************************************************************/
static
void
require
(
bool
v
)
{
if
(
!
v
)
abort
();}
static
void
require
(
bool
v
)
{
if
(
!
v
)
{
#ifndef DBUG_OFF
abort
();
#else
exit
(
-
1
);
#endif
}
}
ConfigInfo
::
ConfigInfo
()
ConfigInfo
::
ConfigInfo
()
:
m_info
(
true
),
m_systemDefaults
(
true
)
:
m_info
(
true
),
m_systemDefaults
(
true
)
...
@@ -2277,7 +2287,7 @@ ConfigInfo::ConfigInfo()
...
@@ -2277,7 +2287,7 @@ ConfigInfo::ConfigInfo()
****************************************************************************/
****************************************************************************/
inline
void
warning
(
const
char
*
src
,
const
char
*
arg
){
inline
void
warning
(
const
char
*
src
,
const
char
*
arg
){
ndbout
<<
"Illegal call to ConfigInfo::"
<<
src
<<
"() - "
<<
arg
<<
endl
;
ndbout
<<
"Illegal call to ConfigInfo::"
<<
src
<<
"() - "
<<
arg
<<
endl
;
abort
(
);
require
(
false
);
}
}
const
Properties
*
const
Properties
*
...
@@ -3394,7 +3404,7 @@ fixDepricated(InitConfigFileParser::Context & ctx, const char * data){
...
@@ -3394,7 +3404,7 @@ fixDepricated(InitConfigFileParser::Context & ctx, const char * data){
}
}
case
PropertiesType_Properties
:
case
PropertiesType_Properties
:
default:
default:
abort
(
);
::
require
(
false
);
}
}
}
}
return
true
;
return
true
;
...
@@ -3406,7 +3416,7 @@ static bool
...
@@ -3406,7 +3416,7 @@ static bool
saveInConfigValues
(
InitConfigFileParser
::
Context
&
ctx
,
const
char
*
data
){
saveInConfigValues
(
InitConfigFileParser
::
Context
&
ctx
,
const
char
*
data
){
const
Properties
*
sec
;
const
Properties
*
sec
;
if
(
!
ctx
.
m_currentInfo
->
get
(
ctx
.
fname
,
&
sec
)){
if
(
!
ctx
.
m_currentInfo
->
get
(
ctx
.
fname
,
&
sec
)){
abort
(
);
require
(
false
);
return
false
;
return
false
;
}
}
...
@@ -3477,7 +3487,7 @@ saveInConfigValues(InitConfigFileParser::Context & ctx, const char * data){
...
@@ -3477,7 +3487,7 @@ saveInConfigValues(InitConfigFileParser::Context & ctx, const char * data){
break
;
break
;
}
}
default:
default:
abort
(
);
require
(
false
);
}
}
require
(
ok
);
require
(
ok
);
}
}
...
...
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