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
654e771d
Commit
654e771d
authored
Aug 08, 2013
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes Tokutek/ft-index#44 Fix loop counter/array bounds in test_stress0
parent
84c2b270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/tests/test_stress0.cc
src/tests/test_stress0.cc
+3
-2
No files found.
src/tests/test_stress0.cc
View file @
654e771d
...
...
@@ -118,7 +118,8 @@ static void
stress_table
(
DB_ENV
*
env
,
DB
**
dbp
,
struct
cli_args
*
cli_args
)
{
if
(
verbose
)
printf
(
"starting creation of pthreads
\n
"
);
const
int
num_threads
=
1
+
cli_args
->
num_update_threads
;
const
int
non_update_threads
=
2
;
const
int
num_threads
=
non_update_threads
+
cli_args
->
num_update_threads
;
struct
arg
myargs
[
num_threads
];
for
(
int
i
=
0
;
i
<
num_threads
;
i
++
)
{
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
...
...
@@ -138,7 +139,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
// make the threads that update the db
struct
update_op_args
uoe
=
get_update_op_args
(
cli_args
,
NULL
);
for
(
int
i
=
2
;
i
<
2
+
cli_args
->
num_update
_threads
;
++
i
)
{
for
(
int
i
=
non_update_threads
;
i
<
num
_threads
;
++
i
)
{
myargs
[
i
].
operation_extra
=
&
uoe
;
myargs
[
i
].
operation
=
update_op
;
myargs
[
i
].
do_prepare
=
false
;
...
...
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