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

[t:2526], add HA_CLUSTERED_INDEX for clustering indexes

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@19656 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4707fd66
......@@ -303,7 +303,11 @@ ulonglong ha_tokudb::table_flags() const {
//
ulong ha_tokudb::index_flags(uint idx, uint part, bool all_parts) const {
TOKUDB_DBUG_ENTER("ha_tokudb::index_flags");
assert(table_share);
ulong flags = (HA_READ_NEXT | HA_READ_PREV | HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE);
if (table_share->key_info[idx].flags & HA_CLUSTERING) {
flags |= HA_CLUSTERED_INDEX;
}
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