Commit dc3185c7 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: pk_is_clustering_key() -> is_clustering_key()

where PK is neither required nor implied
parent 27bf97aa
......@@ -2813,7 +2813,7 @@ double handler::keyread_time(uint index, uint ranges, ha_rows rows)
{
DBUG_ASSERT(ranges == 0 || ranges == 1);
size_t len= table->key_info[index].key_length + ref_length;
if (table->file->pk_is_clustering_key(index))
if (table->file->is_clustering_key(index))
len= table->s->stored_rec_length;
double cost= (double)rows*len/(stats.block_size+1)*IDX_BLOCK_COPY_COST;
if (ranges)
......
......@@ -385,7 +385,7 @@ ha_rows handler::multi_range_read_info(uint keyno, uint n_ranges, uint n_rows,
cost->reset();
/* Produce the same cost as non-MRR code does */
if (!pk_is_clustering_key(keyno))
if (!is_clustering_key(keyno))
{
/*
idx_io_count could potentially be increased with the number of
......
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