Commit 3c631172 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2600], remove unnecessary table scan

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@20141 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3d6436c5
...@@ -2922,6 +2922,9 @@ int ha_tokudb::end_bulk_insert() { ...@@ -2922,6 +2922,9 @@ int ha_tokudb::end_bulk_insert() {
for (uint i = 0; i < table_share->keys; i++) { for (uint i = 0; i < table_share->keys; i++) {
if (table_share->key_info[i].flags & HA_NOSAME) { if (table_share->key_info[i].flags & HA_NOSAME) {
bool is_unique; bool is_unique;
if (i == primary_key) {
continue;
}
error = is_index_unique( error = is_index_unique(
&is_unique, &is_unique,
transaction, transaction,
......
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