cleanup: pk_is_clustering_key() -> is_clustering_key()

where PK is neither required nor implied
This commit is contained in:
Sergei Golubchik 2020-03-24 22:22:57 +01:00
parent 27bf97aa00
commit dc3185c759
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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