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
eeabd0bb
Commit
eeabd0bb
authored
Jan 12, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/jonas/src/mysql-4.1
parents
a5c08a71
a9dc068a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
ndb/test/src/CpcClient.cpp
ndb/test/src/CpcClient.cpp
+20
-22
No files found.
ndb/test/src/CpcClient.cpp
View file @
eeabd0bb
...
...
@@ -30,7 +30,7 @@
0, 0, \
0, \
(desc), \
(v
oid *)(v
alue) }
(value) }
#define CPC_ARG(name, type, opt, desc) \
{ (name), \
...
...
@@ -351,17 +351,12 @@ SimpleCpcClient::define_process(Process & p, Properties& reply){
int
SimpleCpcClient
::
list_processes
(
Vector
<
Process
>
&
procs
,
Properties
&
reply
)
{
enum
Proclist
{
Proclist_Start
,
Proclist_End
,
Proclist_Entry
};
int
start
,
end
,
entry
;
const
ParserRow_t
list_reply
[]
=
{
CPC_CMD
(
"start processes"
,
Proclist_Start
,
""
),
CPC_CMD
(
"end processes"
,
Proclist_End
,
""
),
CPC_CMD
(
"start processes"
,
&
start
,
""
),
CPC_CMD
(
"end processes"
,
&
end
,
""
),
CPC_CMD
(
"process"
,
Proclist_E
ntry
,
""
),
CPC_CMD
(
"process"
,
&
e
ntry
,
""
),
CPC_ARG
(
"id"
,
Int
,
Mandatory
,
"Id of process."
),
CPC_ARG
(
"name"
,
String
,
Mandatory
,
"Name of process"
),
CPC_ARG
(
"group"
,
String
,
Mandatory
,
"Group of process"
),
...
...
@@ -390,26 +385,29 @@ SimpleCpcClient::list_processes(Vector<Process> &procs, Properties& reply) {
bool
done
=
false
;
while
(
!
done
)
{
const
Properties
*
proc
;
enum
Proclist
p
;
cpc_recv
(
list_reply
,
&
proc
,
(
void
**
)
&
p
);
void
*
p
;
cpc_recv
(
list_reply
,
&
proc
,
&
p
);
switch
(
p
)
{
case
Proclist_Start
:
if
(
p
==
&
start
)
{
/* do nothing */
break
;
case
Proclist_End
:
}
else
if
(
p
==
&
end
)
{
done
=
true
;
break
;
case
Proclist_Entry
:
}
else
if
(
p
==
&
entry
)
{
if
(
proc
!=
NULL
){
Process
p
;
convert
(
*
proc
,
p
);
procs
.
push_back
(
p
);
}
break
;
default:
/* ignore */
break
;
}
else
{
ndbout_c
(
"internal error: %d"
,
__LINE__
);
return
-
1
;
}
}
return
0
;
...
...
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