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
ed344d69
Commit
ed344d69
authored
Aug 31, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#12833 corrected parsing of CLUSTERLOG command in ndb_mgm
parent
52549105
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
35 deletions
+42
-35
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+42
-35
No files found.
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
ed344d69
...
...
@@ -1909,11 +1909,16 @@ CommandInterpreter::executeEventReporting(int processId,
return
;
}
BaseString
tmp
(
parameters
);
Vector
<
BaseString
>
specs
;
tmp
.
split
(
specs
,
" "
);
for
(
int
i
=
0
;
i
<
specs
.
size
();
i
++
)
{
Vector
<
BaseString
>
spec
;
tmp
.
split
(
spec
,
"="
);
specs
[
i
]
.
split
(
spec
,
"="
);
if
(
spec
.
size
()
!=
2
){
ndbout
<<
"Invalid loglevel specification: "
<<
parameters
<<
endl
;
return
;
ndbout
<<
"Invalid loglevel specification: "
<<
specs
[
i
]
<<
endl
;
continue
;
}
spec
[
0
].
trim
().
ndb_toupper
();
...
...
@@ -1923,7 +1928,7 @@ CommandInterpreter::executeEventReporting(int processId,
category
<
NDB_MGM_MIN_EVENT_CATEGORY
||
category
>
NDB_MGM_MAX_EVENT_CATEGORY
){
ndbout
<<
"Unknown category:
\"
"
<<
spec
[
0
].
c_str
()
<<
"
\"
"
<<
endl
;
return
;
continue
;
}
}
...
...
@@ -1931,10 +1936,11 @@ CommandInterpreter::executeEventReporting(int processId,
if
(
!
convert
(
spec
[
1
].
c_str
(),
level
))
{
ndbout
<<
"Invalid level: "
<<
spec
[
1
].
c_str
()
<<
endl
;
return
;
continue
;
}
ndbout
<<
"Executing CLUSTERLOG on node "
<<
processId
<<
flush
;
ndbout
<<
"Executing CLUSTERLOG "
<<
spec
[
0
]
<<
"="
<<
spec
[
1
]
<<
" on node "
<<
processId
<<
flush
;
struct
ndb_mgm_reply
reply
;
int
result
;
...
...
@@ -1950,6 +1956,7 @@ CommandInterpreter::executeEventReporting(int processId,
}
else
{
ndbout_c
(
" 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