mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
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:
parent
f8499b0608
commit
954ad0d550
1 changed files with 0 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue