Commit 9732f7f3 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #873

used to disable covering indexes for some keys with strings for wrong reasons
not anymore

git-svn-id: file:///svn/mysql/tokudb-engine/src@4386 c7de825b-a66e-492c-adef-691d508d4ae1
parent ec046740
......@@ -722,20 +722,6 @@ ulong ha_tokudb::index_flags(uint idx, uint part, bool all_parts) const {
flags &= ~(HA_READ_ORDER | HA_KEYREAD_ONLY | HA_READ_RANGE);
break;
}
switch (key_part->field->key_type()) {
case HA_KEYTYPE_TEXT:
case HA_KEYTYPE_VARTEXT1:
case HA_KEYTYPE_VARTEXT2:
/* QQQ
As BDB stores only one copy of equal strings, we can't use key read
on these. Binary collations do support key read though.
*/
if (!(key_part->field->charset()->state & MY_CS_BINSORT))
flags &= ~HA_KEYREAD_ONLY;
break;
default: // Keep compiler happy
break;
}
}
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