Commit a6762fba 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 3a77bee7
......@@ -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,
......
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