Reduce overhead of subtransactions

git-svn-id: file:///svn/tokudb@5674 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2008-08-15 17:07:44 +00:00
parent bcacaae98e
commit 4811a42042

View file

@ -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) {