refs #5467, undo change

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@47790 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-17 00:02:14 -04:00 committed by Yoni Fogel
parent f8499b0608
commit 954ad0d550

View file

@ -7693,17 +7693,6 @@ int ha_tokudb::tokudb_add_index(
write_key_name_to_status(share->status_block, key_info[i].name, txn);
}
pthread_mutex_unlock(&share->mutex);
// the transaction that does either a bulk load or a hot index
// will need to do a checkpoint during commit, which may be
// expensive. This may block other threads because the commit
// takes place when MySQL's metadata lock is held. So,
// reduce the time it takes for that checkpoint to happen,
// we run a checkpoint right now.
error = db_env->txn_checkpoint(db_env, 0, 0, 0);
if (error) {
goto cleanup;
}
error = 0;
cleanup: