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
c20c8baf
Commit
c20c8baf
authored
Sep 06, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed faked do_work
parent
b484ed61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
ndb/test/ndbapi/testReadPerf.cpp
ndb/test/ndbapi/testReadPerf.cpp
+0
-15
No files found.
ndb/test/ndbapi/testReadPerf.cpp
View file @
c20c8baf
...
...
@@ -242,14 +242,6 @@ void err(NdbError e){
ndbout
<<
e
<<
endl
;
}
static
void
do_work
(){
int
sz
=
10
*
1024
;
int
pos
=
rand
()
%
(
sizeof
(
g_buffer
)
-
sz
);
memset
(
g_buffer
+
pos
,
rand
(),
sz
);
}
int
run_read
(){
int
iter
=
g_paramters
[
P_LOOPS
].
value
;
...
...
@@ -374,7 +366,6 @@ run_read(){
assert
(
check
==
0
);
if
(
g_paramters
[
P_OPER
].
value
>=
4
){
while
((
check
=
rs
->
nextResult
(
true
))
==
0
){
do_work
();
cnt
++
;
}
...
...
@@ -384,12 +375,6 @@ run_read(){
}
assert
(
check
==
1
);
rs
->
close
();
}
else
{
if
(
start_row
!=
stop_row
)
do_work
();
else
for
(
int
j
=
0
;
j
<
range
;
j
++
)
do_work
();
}
}
assert
(
g_paramters
[
P_OPER
].
value
<
4
||
(
cnt
==
range
));
...
...
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