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
a9dc068a
Commit
a9dc068a
authored
Jan 12, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - fix 64-bit problem in autotest
parent
2bd854c8
Changes
1
Show 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 @
a9dc068a
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
0, 0, \
0, 0, \
0, \
0, \
(desc), \
(desc), \
(v
oid *)(v
alue) }
(value) }
#define CPC_ARG(name, type, opt, desc) \
#define CPC_ARG(name, type, opt, desc) \
{ (name), \
{ (name), \
...
@@ -351,17 +351,12 @@ SimpleCpcClient::define_process(Process & p, Properties& reply){
...
@@ -351,17 +351,12 @@ SimpleCpcClient::define_process(Process & p, Properties& reply){
int
int
SimpleCpcClient
::
list_processes
(
Vector
<
Process
>
&
procs
,
Properties
&
reply
)
{
SimpleCpcClient
::
list_processes
(
Vector
<
Process
>
&
procs
,
Properties
&
reply
)
{
enum
Proclist
{
int
start
,
end
,
entry
;
Proclist_Start
,
Proclist_End
,
Proclist_Entry
};
const
ParserRow_t
list_reply
[]
=
{
const
ParserRow_t
list_reply
[]
=
{
CPC_CMD
(
"start processes"
,
Proclist_Start
,
""
),
CPC_CMD
(
"start processes"
,
&
start
,
""
),
CPC_CMD
(
"end processes"
,
&
end
,
""
),
CPC_CMD
(
"end processes"
,
Proclist_End
,
""
),
CPC_CMD
(
"process"
,
Proclist_E
ntry
,
""
),
CPC_CMD
(
"process"
,
&
e
ntry
,
""
),
CPC_ARG
(
"id"
,
Int
,
Mandatory
,
"Id of process."
),
CPC_ARG
(
"id"
,
Int
,
Mandatory
,
"Id of process."
),
CPC_ARG
(
"name"
,
String
,
Mandatory
,
"Name of process"
),
CPC_ARG
(
"name"
,
String
,
Mandatory
,
"Name of process"
),
CPC_ARG
(
"group"
,
String
,
Mandatory
,
"Group of process"
),
CPC_ARG
(
"group"
,
String
,
Mandatory
,
"Group of process"
),
...
@@ -390,26 +385,29 @@ SimpleCpcClient::list_processes(Vector<Process> &procs, Properties& reply) {
...
@@ -390,26 +385,29 @@ SimpleCpcClient::list_processes(Vector<Process> &procs, Properties& reply) {
bool
done
=
false
;
bool
done
=
false
;
while
(
!
done
)
{
while
(
!
done
)
{
const
Properties
*
proc
;
const
Properties
*
proc
;
enum
Proclist
p
;
void
*
p
;
cpc_recv
(
list_reply
,
&
proc
,
(
void
**
)
&
p
);
cpc_recv
(
list_reply
,
&
proc
,
&
p
);
switch
(
p
)
{
if
(
p
==
&
start
)
case
Proclist_Start
:
{
/* do nothing */
/* do nothing */
break
;
}
case
Proclist_End
:
else
if
(
p
==
&
end
)
{
done
=
true
;
done
=
true
;
break
;
}
case
Proclist_Entry
:
else
if
(
p
==
&
entry
)
{
if
(
proc
!=
NULL
){
if
(
proc
!=
NULL
){
Process
p
;
Process
p
;
convert
(
*
proc
,
p
);
convert
(
*
proc
,
p
);
procs
.
push_back
(
p
);
procs
.
push_back
(
p
);
}
}
break
;
}
default:
else
/* ignore */
{
break
;
ndbout_c
(
"internal error: %d"
,
__LINE__
);
return
-
1
;
}
}
}
}
return
0
;
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