Commit 59f1b2a3 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

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
parent 4ae5e7e4
...@@ -3553,7 +3553,7 @@ int ha_tokudb::add_index(TABLE *table_arg, KEY *key_info, uint num_of_keys) { ...@@ -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; uint curr_index = i + table_arg->s->keys;
u_int32_t put_flags = share->key_type[curr_index]; 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, &current_primary_key, put_flags); error = share->key_file[curr_index]->put(share->key_file[curr_index], txn, &secondary_key, &current_primary_key, put_flags);
if (error) { if (error) {
// //
// in the case of any error anywhere, we can just nuke all the files created, so we dont need // in the case of any error anywhere, we can just nuke all the files created, so we dont need
......
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