Commit 9a06ddf3 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3165], fix keyread_time for primary keys

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@26999 c7de825b-a66e-492c-adef-691d508d4ae1
parent 64527cc8
......@@ -6238,7 +6238,7 @@ double ha_tokudb::scan_time() {
double ha_tokudb::keyread_time(uint index, uint ranges, ha_rows rows)
{
if (table->key_info[index].flags & HA_CLUSTERING) {
if ((table->key_info[index].flags & HA_CLUSTERING) || (index == primary_key)) {
return read_time(index, ranges, rows);
}
/*
......
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