Browse Source

[t:2600], remove unnecessary table scan

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20141 c7de825b-a66e-492c-adef-691d508d4ae1
pull/73/head
Zardosht Kasheff 13 years ago
committed by Yoni Fogel
parent
commit
a6762fbad2
  1. 5
      storage/tokudb/ha_tokudb.cc

5
storage/tokudb/ha_tokudb.cc

@ -1480,7 +1480,7 @@ bool ha_tokudb::can_replace_into_be_fast(TABLE_SHARE* table_share, KEY_AND_COL_I
}
}
}
}
exit:
return ret_val;
}
@ -2922,6 +2922,9 @@ int ha_tokudb::end_bulk_insert() {
for (uint i = 0; i < table_share->keys; i++) {
if (table_share->key_info[i].flags & HA_NOSAME) {
bool is_unique;
if (i == primary_key) {
continue;
}
error = is_index_unique(
&is_unique,
transaction,

Loading…
Cancel
Save