mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
[t:4427], fix test_stress_with_verify
git-svn-id: file:///svn/toku/tokudb@39322 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
a1ce51e9a6
commit
11ca3f4305
1 changed files with 2 additions and 2 deletions
|
@ -49,16 +49,16 @@ stress_table(DB_ENV *env, DB **dbp, struct cli_args *cli_args) {
|
|||
myargs[1].sleep_ms = 3000; // maybe make this a runtime param at some point
|
||||
myargs[1].operation = verify_op;
|
||||
|
||||
struct update_op_args uoe = get_update_op_args(cli_args, NULL);
|
||||
for (int i = 2; i < 2 + cli_args->num_update_threads; ++i) {
|
||||
myargs[i].lock_type = STRESS_LOCK_SHARED;
|
||||
myargs[i].operation_extra = &uoe;
|
||||
myargs[i].operation = update_op;
|
||||
}
|
||||
|
||||
// make the guy that does point queries
|
||||
struct update_op_args uoe = get_update_op_args(cli_args, NULL);
|
||||
for (int i = 2 + cli_args->num_update_threads; i < num_threads; i++) {
|
||||
myargs[i].lock_type = STRESS_LOCK_SHARED;
|
||||
myargs[i].operation_extra = &uoe;
|
||||
myargs[i].operation = ptquery_op;
|
||||
}
|
||||
run_workers(myargs, num_threads, cli_args->time_of_test, false, cli_args);
|
||||
|
|
Loading…
Add table
Reference in a new issue