@@ -5047,7 +5047,7 @@ int ha_rocksdb::create_cfs(const TABLE *table_arg, Rdb_tbl_def *tbl_def_arg,
5047
5047
!is_hidden_pk (i, table_arg, tbl_def_arg) &&
5048
5048
tbl_def_arg->base_tablename ().find (tmp_file_prefix) != 0 )
5049
5049
{
5050
- for (uint part= 0 ; part < table_arg->key_info [i].actual_key_parts ; part++)
5050
+ for (uint part= 0 ; part < table_arg->key_info [i].ext_key_parts ; part++)
5051
5051
{
5052
5052
if (!rdb_is_index_collation_supported (
5053
5053
table_arg->key_info [i].key_part [part].field ) &&
@@ -7124,7 +7124,7 @@ bool ha_rocksdb::can_use_single_delete(uint index)
7124
7124
{
7125
7125
return (index != pk_index (table, m_tbl_def) ||
7126
7126
(!has_hidden_pk (table) &&
7127
- table->key_info [index].actual_key_parts == table->s ->fields ));
7127
+ table->key_info [index].ext_key_parts == table->s ->fields ));
7128
7128
}
7129
7129
7130
7130
bool ha_rocksdb::skip_unique_check ()
@@ -8351,7 +8351,7 @@ int ha_rocksdb::info(uint flag)
8351
8351
continue ;
8352
8352
}
8353
8353
KEY* k= &table->key_info [i];
8354
- for (uint j = 0 ; j < k->actual_key_parts ; j++)
8354
+ for (uint j = 0 ; j < k->ext_key_parts ; j++)
8355
8355
{
8356
8356
const Rdb_index_stats& k_stats= m_key_descr_arr[i]->m_stats ;
8357
8357
uint x = k_stats.m_distinct_keys_per_prefix .size () > j &&
@@ -8367,7 +8367,7 @@ int ha_rocksdb::info(uint flag)
8367
8367
// will have rec_per_key for (idx1)=4, (idx1,2)=2, and (idx1,2,3)=1.
8368
8368
// rec_per_key for the whole index is 1, and multiplied by 2^n if
8369
8369
// n suffix columns of the index are not used.
8370
- x = 1 << (k->actual_key_parts -j-1 );
8370
+ x = 1 << (k->ext_key_parts -j-1 );
8371
8371
}
8372
8372
k->rec_per_key [j]= x;
8373
8373
}
0 commit comments