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
7e36a0b7
Commit
7e36a0b7
authored
Jan 12, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - fix 64-bit problem in autotest
ndb/test/src/CpcClient.cpp: Fix 64-bit problem
parent
7bb97a4a
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 @
7e36a0b7
...
...
@@ -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