diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-03-24 22:22:57 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-31 17:42:33 +0200 |
commit | dc3185c7597d0dd4a34aae2ade2b78404adbdf94 (patch) | |
tree | 826cef7c77317fe5da220e28733de0f406058543 /sql/handler.cc | |
parent | 27bf97aa009c3c4823b06adea08add4deb7b34ce (diff) | |
download | mariadb-git-dc3185c7597d0dd4a34aae2ade2b78404adbdf94.tar.gz |
cleanup: pk_is_clustering_key() -> is_clustering_key()
where PK is neither required nor implied
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 04170d0f347..b1b7a60a413 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -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) |