mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 03:21:53 +01:00
addresses #883
make add_index faster by making inserts into secondary table all be part of on transaction git-svn-id: file:///svn/mysql/tokudb-engine/src@4287 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
29e0cf4812
commit
e8f46df530
1 changed files with 1 additions and 1 deletions
|
@ -3553,7 +3553,7 @@ int ha_tokudb::add_index(TABLE *table_arg, KEY *key_info, uint num_of_keys) {
|
|||
uint curr_index = i + table_arg->s->keys;
|
||||
u_int32_t put_flags = share->key_type[curr_index];
|
||||
|
||||
error = share->key_file[curr_index]->put(share->key_file[curr_index], NULL, &secondary_key, ¤t_primary_key, put_flags);
|
||||
error = share->key_file[curr_index]->put(share->key_file[curr_index], txn, &secondary_key, ¤t_primary_key, put_flags);
|
||||
if (error) {
|
||||
//
|
||||
// in the case of any error anywhere, we can just nuke all the files created, so we dont need
|
||||
|
|
Loading…
Add table
Reference in a new issue