Commit c22867c6 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #873

no need to disable shortcut sorts with blobs

git-svn-id: file:///svn/mysql/tokudb-engine/src@4461 c7de825b-a66e-492c-adef-691d508d4ae1
parent 473689fa
...@@ -722,14 +722,6 @@ const char **ha_tokudb::bas_ext() const { ...@@ -722,14 +722,6 @@ const char **ha_tokudb::bas_ext() const {
ulong ha_tokudb::index_flags(uint idx, uint part, bool all_parts) const { ulong ha_tokudb::index_flags(uint idx, uint part, bool all_parts) const {
TOKUDB_DBUG_ENTER("ha_tokudb::index_flags"); TOKUDB_DBUG_ENTER("ha_tokudb::index_flags");
ulong flags = (HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE); ulong flags = (HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE);
for (uint i = all_parts ? 0 : part; i <= part; i++) {
KEY_PART_INFO *key_part = table_share->key_info[idx].key_part + i;
if (key_part->field->type() == FIELD_TYPE_BLOB) {
/* We can't use BLOBS to shortcut sorts */
flags &= ~(HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE);
break;
}
}
DBUG_RETURN(flags); DBUG_RETURN(flags);
} }
......
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