Commit 2855084f authored by Yoni Fogel's avatar Yoni Fogel

Closes #1098

Reduce overhead of subtransactions

git-svn-id: file:///svn/tokudb@5674 c7de825b-a66e-492c-adef-691d508d4ae1
parent dcfbff56
......@@ -1037,7 +1037,7 @@ static int toku_txn_begin(DB_ENV *env, DB_TXN * stxn, DB_TXN ** txn, u_int32_t f
memset(result->i, 0, sizeof *result->i);
int r;
if (env->i->open_flags & DB_INIT_LOCK) {
if (env->i->open_flags & DB_INIT_LOCK && !stxn) {
r = toku_lth_create(&result->i->lth,
toku_malloc, toku_free, toku_realloc);
if (r!=0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment