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
ccafb593
Commit
ccafb593
authored
Dec 17, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mleich@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/matthias/Arbeit/mysql-4.1/src
parents
40bba8fb
8fd61611
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+0
-1
ndb/src/mgmsrv/CommandInterpreter.cpp
ndb/src/mgmsrv/CommandInterpreter.cpp
+38
-1
ndb/src/mgmsrv/CommandInterpreter.hpp
ndb/src/mgmsrv/CommandInterpreter.hpp
+1
-0
No files found.
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
ccafb593
...
@@ -340,7 +340,6 @@ static const char* helpTextDebug =
...
@@ -340,7 +340,6 @@ static const char* helpTextDebug =
#ifdef ERROR_INSERT
#ifdef ERROR_INSERT
"<id> ERROR <errorNo> Inject error into NDB node
\n
"
"<id> ERROR <errorNo> Inject error into NDB node
\n
"
#endif
#endif
"<id> TRACE <traceNo> Set trace number
\n
"
"<id> LOG [BLOCK = {ALL|<block>+}] Set logging on in & out signals
\n
"
"<id> LOG [BLOCK = {ALL|<block>+}] Set logging on in & out signals
\n
"
"<id> LOGIN [BLOCK = {ALL|<block>+}] Set logging on in signals
\n
"
"<id> LOGIN [BLOCK = {ALL|<block>+}] Set logging on in signals
\n
"
"<id> LOGOUT [BLOCK = {ALL|<block>+}] Set logging on out signals
\n
"
"<id> LOGOUT [BLOCK = {ALL|<block>+}] Set logging on out signals
\n
"
...
...
ndb/src/mgmsrv/CommandInterpreter.cpp
View file @
ccafb593
...
@@ -119,7 +119,8 @@ int CommandInterpreter::readAndExecute() {
...
@@ -119,7 +119,8 @@ int CommandInterpreter::readAndExecute() {
static
const
CommandInterpreter
::
CommandFunctionPair
commands
[]
=
{
static
const
CommandInterpreter
::
CommandFunctionPair
commands
[]
=
{
{
"LOGIN"
,
&
CommandInterpreter
::
executeLogIn
}
{
"TRACE"
,
&
CommandInterpreter
::
executeTrace
}
,{
"LOGIN"
,
&
CommandInterpreter
::
executeLogIn
}
,{
"LOGOUT"
,
&
CommandInterpreter
::
executeLogOut
}
,{
"LOGOUT"
,
&
CommandInterpreter
::
executeLogOut
}
,{
"LOGOFF"
,
&
CommandInterpreter
::
executeLogOff
}
,{
"LOGOFF"
,
&
CommandInterpreter
::
executeLogOff
}
};
};
...
@@ -306,3 +307,39 @@ void CommandInterpreter::executeLogOff(int processId,
...
@@ -306,3 +307,39 @@ void CommandInterpreter::executeLogOff(int processId,
}
}
}
}
void
CommandInterpreter
::
executeTrace
(
int
processId
,
const
char
*
parameters
,
bool
all
)
{
(
void
)
all
;
// Don't want compiler warning
if
(
emptyString
(
parameters
))
{
ndbout
<<
"Missing trace number."
<<
endl
;
return
;
}
char
*
newpar
=
strdup
(
parameters
);
char
*
firstParameter
=
strtok
(
newpar
,
" "
);
int
traceNo
;
if
(
!
convert
(
firstParameter
,
traceNo
))
{
ndbout
<<
"Expected an integer."
<<
endl
;
free
(
newpar
);
return
;
}
char
*
allAfterFirstParameter
=
strtok
(
NULL
,
"
\0
"
);
if
(
!
emptyString
(
allAfterFirstParameter
))
{
ndbout
<<
"Nothing expected after trace number."
<<
endl
;
free
(
newpar
);
return
;
}
int
result
=
_mgmtSrvr
.
setTraceNo
(
processId
,
traceNo
);
if
(
result
!=
0
)
{
ndbout
<<
get_error_text
(
result
)
<<
endl
;
}
free
(
newpar
);
}
ndb/src/mgmsrv/CommandInterpreter.hpp
View file @
ccafb593
...
@@ -63,6 +63,7 @@ private:
...
@@ -63,6 +63,7 @@ private:
Vector
<
BaseString
>&
blocks
);
Vector
<
BaseString
>&
blocks
);
public:
public:
void
executeTrace
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogIn
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogIn
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogOut
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogOut
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogOff
(
int
processId
,
const
char
*
parameters
,
bool
all
);
void
executeLogOff
(
int
processId
,
const
char
*
parameters
,
bool
all
);
...
...
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