mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
fixes #5922 pass DB_TXN_READ_ONLY to the workers that do ptquery_op and ptquery_op2
git-svn-id: file:///svn/toku/tokudb@52406 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2ebaaac149
commit
cd0a6cbba1
2 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
|
|||
for (int i = 0; i < num_threads; i++) {
|
||||
arg_init(&myargs[i], dbp, env, cli_args);
|
||||
myargs[i].operation = ptquery_op;
|
||||
myargs[i].txn_flags |= DB_TXN_READ_ONLY;
|
||||
}
|
||||
run_workers(myargs, num_threads, cli_args->num_seconds, false, cli_args);
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ stress_table(DB_ENV* env, DB** dbp, struct cli_args *cli_args) {
|
|||
thread_ids[i] = i % cli_args->num_DBs;
|
||||
myargs[i].operation = ptquery_op2;
|
||||
myargs[i].operation_extra = &thread_ids[i];
|
||||
myargs[i].txn_flags |= DB_TXN_READ_ONLY;
|
||||
}
|
||||
run_workers(myargs, num_threads, cli_args->num_seconds, false, cli_args);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue