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
2fb873f3
Commit
2fb873f3
authored
Feb 14, 2007
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#26355 FIXME: use constant for max loglevel in ndb_mgmd
parent
02c847eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ndb/include/mgmapi/mgmapi.h
ndb/include/mgmapi/mgmapi.h
+2
-0
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+3
-5
No files found.
ndb/include/mgmapi/mgmapi.h
View file @
2fb873f3
...
...
@@ -16,6 +16,8 @@
#ifndef MGMAPI_H
#define MGMAPI_H
#define NDB_MGM_MAX_LOGLEVEL 15
/**
* @mainpage MySQL Cluster Management API
*
...
...
ndb/src/mgmsrv/Services.cpp
View file @
2fb873f3
...
...
@@ -764,8 +764,7 @@ MgmApiSession::setClusterLogLevel(Parser<MgmApiSession>::Context &,
DBUG_PRINT
(
"enter"
,(
"node=%d, category=%d, level=%d"
,
node
,
cat
,
level
));
/* XXX should use constants for this value */
if
(
level
>
15
)
{
if
(
level
>
NDB_MGM_MAX_LOGLEVEL
)
{
m_output
->
println
(
reply
);
m_output
->
println
(
"result: Invalid loglevel %d"
,
level
);
m_output
->
println
(
""
);
...
...
@@ -809,8 +808,7 @@ MgmApiSession::setLogLevel(Parser<MgmApiSession>::Context &,
args
.
get
(
"category"
,
&
cat
);
args
.
get
(
"level"
,
&
level
);
/* XXX should use constants for this value */
if
(
level
>
15
)
{
if
(
level
>
NDB_MGM_MAX_LOGLEVEL
)
{
m_output
->
println
(
"set loglevel reply"
);
m_output
->
println
(
"result: Invalid loglevel"
,
errorString
.
c_str
());
m_output
->
println
(
""
);
...
...
@@ -1510,7 +1508,7 @@ MgmApiSession::listen_event(Parser<MgmApiSession>::Context & ctx,
}
int
level
=
atoi
(
spec
[
1
].
c_str
());
if
(
level
<
0
||
level
>
15
){
if
(
level
<
0
||
level
>
NDB_MGM_MAX_LOGLEVEL
){
msg
.
appfmt
(
"Invalid level: >%s<"
,
spec
[
1
].
c_str
());
result
=
-
1
;
goto
done
;
...
...
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