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
de5fe185
Commit
de5fe185
authored
Apr 17, 2013
by
Leif Walsh
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5671 compile fix
git-svn-id:
file:///svn/toku/tokudb@50131
c7de825b-a66e-492c-adef-691d508d4ae1
parent
8d8e29b0
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
30 additions
and
30 deletions
+30
-30
src/tests/perf_checkpoint_var.cc
src/tests/perf_checkpoint_var.cc
+1
-1
src/tests/perf_child_txn.cc
src/tests/perf_child_txn.cc
+1
-1
src/tests/perf_cursor_nop.cc
src/tests/perf_cursor_nop.cc
+1
-1
src/tests/perf_insert.cc
src/tests/perf_insert.cc
+1
-1
src/tests/perf_insert_multiple.cc
src/tests/perf_insert_multiple.cc
+1
-1
src/tests/perf_malloc_free.cc
src/tests/perf_malloc_free.cc
+1
-1
src/tests/perf_nop.cc
src/tests/perf_nop.cc
+1
-1
src/tests/perf_ptquery.cc
src/tests/perf_ptquery.cc
+1
-1
src/tests/perf_ptquery2.cc
src/tests/perf_ptquery2.cc
+1
-1
src/tests/perf_read_write.cc
src/tests/perf_read_write.cc
+1
-1
src/tests/perf_txn_single_thread.cc
src/tests/perf_txn_single_thread.cc
+1
-1
src/tests/perf_xmalloc_free.cc
src/tests/perf_xmalloc_free.cc
+1
-1
src/tests/recover-test_crash_in_flusher_thread.h
src/tests/recover-test_crash_in_flusher_thread.h
+2
-2
src/tests/recover-test_stress1.cc
src/tests/recover-test_stress1.cc
+1
-1
src/tests/recover-test_stress2.cc
src/tests/recover-test_stress2.cc
+1
-1
src/tests/recover-test_stress3.cc
src/tests/recover-test_stress3.cc
+1
-1
src/tests/stress-gc2.cc
src/tests/stress-gc2.cc
+2
-2
src/tests/stress_openclose.h
src/tests/stress_openclose.h
+1
-1
src/tests/test_stress0.cc
src/tests/test_stress0.cc
+1
-1
src/tests/test_stress1.cc
src/tests/test_stress1.cc
+1
-1
src/tests/test_stress2.cc
src/tests/test_stress2.cc
+1
-1
src/tests/test_stress3.cc
src/tests/test_stress3.cc
+1
-1
src/tests/test_stress4.cc
src/tests/test_stress4.cc
+1
-1
src/tests/test_stress5.cc
src/tests/test_stress5.cc
+1
-1
src/tests/test_stress6.cc
src/tests/test_stress6.cc
+1
-1
src/tests/test_stress7.cc
src/tests/test_stress7.cc
+1
-1
src/tests/test_stress_hot_indexing.cc
src/tests/test_stress_hot_indexing.cc
+1
-1
src/tests/test_stress_with_verify.cc
src/tests/test_stress_with_verify.cc
+1
-1
No files found.
src/tests/perf_checkpoint_var.cc
View file @
de5fe185
...
...
@@ -92,7 +92,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
checkpoint_var
;
myargs
[
i
].
operation_extra
=
&
val_size
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_child_txn.cc
View file @
de5fe185
...
...
@@ -41,7 +41,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
create_child_txn
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_cursor_nop.cc
View file @
de5fe185
...
...
@@ -35,7 +35,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
cursor_create_close_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_insert.cc
View file @
de5fe185
...
...
@@ -38,7 +38,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
}
}
const
bool
crash_at_end
=
false
;
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
crash_at_end
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
crash_at_end
,
cli_args
);
}
int
...
...
src/tests/perf_insert_multiple.cc
View file @
de5fe185
...
...
@@ -34,7 +34,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
}
}
const
bool
crash_at_end
=
false
;
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
crash_at_end
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
crash_at_end
,
cli_args
);
}
int
...
...
src/tests/perf_malloc_free.cc
View file @
de5fe185
...
...
@@ -29,7 +29,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
malloc_free_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_nop.cc
View file @
de5fe185
...
...
@@ -27,7 +27,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
nop
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_ptquery.cc
View file @
de5fe185
...
...
@@ -55,7 +55,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_ptquery2.cc
View file @
de5fe185
...
...
@@ -68,7 +68,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
ptquery_op2
;
myargs
[
i
].
operation_extra
=
&
thread_ids
[
i
];
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_read_write.cc
View file @
de5fe185
...
...
@@ -66,7 +66,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
perf_read
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/perf_txn_single_thread.cc
View file @
de5fe185
...
...
@@ -51,7 +51,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myarg
,
dbp
,
env
,
cli_args
);
myarg
.
operation
=
commit_and_create_txn
;
run_workers
(
&
myarg
,
1
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
&
myarg
,
1
,
cli_args
->
num_seconds
,
false
,
cli_args
);
for
(
int
i
=
0
;
i
<
num_txns
;
i
++
)
{
int
chk_r
=
txns
[
i
]
->
commit
(
txns
[
i
],
0
);
...
...
src/tests/perf_xmalloc_free.cc
View file @
de5fe185
...
...
@@ -27,7 +27,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
xmalloc_free_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/recover-test_crash_in_flusher_thread.h
View file @
de5fe185
...
...
@@ -68,14 +68,14 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
//myargs[0].update_pad_frequency = 0;
db_env_set_flusher_thread_callback
(
flt_callback
,
env
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
true
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
true
,
cli_args
);
}
static
int
run_recover_flt_test
(
int
argc
,
char
*
const
argv
[])
{
struct
cli_args
args
=
get_default_args
();
// make test time arbitrarily high because we expect a crash
args
.
time_of_test
=
1000000000
;
args
.
num_seconds
=
1000000000
;
args
.
num_elements
=
2000
;
// we want to induce a checkpoint
args
.
env_args
.
checkpointing_period
=
0
;
...
...
src/tests/recover-test_stress1.cc
View file @
de5fe185
...
...
@@ -98,7 +98,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
do_prepare
=
true
;
}
int
num_seconds
=
random
()
%
cli_args
->
time_of_test
;
int
num_seconds
=
random
()
%
cli_args
->
num_seconds
;
run_workers
(
myargs
,
num_threads
,
num_seconds
,
true
,
cli_args
);
}
...
...
src/tests/recover-test_stress2.cc
View file @
de5fe185
...
...
@@ -30,7 +30,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
}
int
num_seconds
=
random
()
%
cli_args
->
time_of_test
;
int
num_seconds
=
random
()
%
cli_args
->
num_seconds
;
run_workers
(
myargs
,
num_threads
,
num_seconds
,
true
,
cli_args
);
}
...
...
src/tests/recover-test_stress3.cc
View file @
de5fe185
...
...
@@ -126,7 +126,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
}
db_env_set_checkpoint_callback2
(
checkpoint_callback2
,
NULL
);
time_til_crash
=
random
()
%
cli_args
->
time_of_test
;
time_til_crash
=
random
()
%
cli_args
->
num_seconds
;
start_time
=
get_tnow
();
run_workers
(
myargs
,
num_threads
,
INT32_MAX
,
true
,
cli_args
);
}
...
...
src/tests/stress-gc2.cc
View file @
de5fe185
...
...
@@ -33,14 +33,14 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
arg_init
(
&
myargs
[
i
],
dbp
,
env
,
cli_args
);
myargs
[
i
].
operation
=
random_sleep
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
test_main
(
int
UU
(
argc
),
char
*
const
UU
(
argv
[]))
{
struct
cli_args
args
=
get_default_args_for_perf
();
db_env_set_mvcc_garbage_collection_verification
(
1
);
args
.
time_of_test
=
60
;
args
.
num_seconds
=
60
;
args
.
num_ptquery_threads
=
12
;
stress_test_main
(
&
args
);
return
0
;
...
...
src/tests/stress_openclose.h
View file @
de5fe185
...
...
@@ -229,7 +229,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
// stress_openclose_crash_at_end should be changed to true or false,
// depending if this test is for recovery or not.
const
bool
crash_at_end
=
stress_openclose_crash_at_end
;
run_workers
(
myargs
,
total_threads
,
cli_args
->
time_of_test
,
crash_at_end
,
cli_args
);
run_workers
(
myargs
,
total_threads
,
cli_args
->
num_seconds
,
crash_at_end
,
cli_args
);
// the stress test is now complete. get ready for shutdown/close.
//
...
...
src/tests/test_stress0.cc
View file @
de5fe185
...
...
@@ -53,7 +53,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
prelock_updates
=
i
<
4
?
true
:
false
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress1.cc
View file @
de5fe185
...
...
@@ -98,7 +98,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
do_prepare
=
true
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress2.cc
View file @
de5fe185
...
...
@@ -92,7 +92,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
ptquery_op_no_check
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress3.cc
View file @
de5fe185
...
...
@@ -95,7 +95,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress4.cc
View file @
de5fe185
...
...
@@ -90,7 +90,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
toku_free
(
update_history_buffer
);
}
...
...
src/tests/test_stress5.cc
View file @
de5fe185
...
...
@@ -59,7 +59,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
for
(
int
i
=
4
+
cli_args
->
num_update_threads
;
i
<
num_threads
;
i
++
)
{
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress6.cc
View file @
de5fe185
...
...
@@ -104,7 +104,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
operation
=
ptquery_op_no_check
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress7.cc
View file @
de5fe185
...
...
@@ -59,7 +59,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
for
(
int
i
=
4
+
cli_args
->
num_update_threads
;
i
<
num_threads
;
i
++
)
{
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress_hot_indexing.cc
View file @
de5fe185
...
...
@@ -255,7 +255,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
0
].
operation
=
hi_inserts
;
myargs
[
1
].
operation
=
hi_create_index
;
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
src/tests/test_stress_with_verify.cc
View file @
de5fe185
...
...
@@ -60,7 +60,7 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
myargs
[
i
].
lock_type
=
STRESS_LOCK_SHARED
;
myargs
[
i
].
operation
=
ptquery_op
;
}
run_workers
(
myargs
,
num_threads
,
cli_args
->
time_of_test
,
false
,
cli_args
);
run_workers
(
myargs
,
num_threads
,
cli_args
->
num_seconds
,
false
,
cli_args
);
}
int
...
...
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