port fix to main line

git-svn-id: file:///svn/mysql/tokudb-engine/src@8025 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2008-11-19 23:05:49 +00:00 committed by Yoni Fogel
parent eb00e4d1b6
commit 92c148859c

View file

@ -3967,6 +3967,15 @@ double ha_tokudb::read_time(
double total_scan;
double ret_val;
//
// in case for hidden primary key, this is called
//
if (index >= table_share->keys) {
ret_val = handler::read_time(index, ranges, rows);
goto cleanup;
}
//
// if it is not the primary key, and it is not a clustering key, then return handler::read_time
//