mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
addresses #1097
do not set cardinality for clustering keys, because it is inaccurate git-svn-id: file:///svn/mysql/tokudb-engine/src@11500 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
5a3b7a49e3
commit
d613f05980
1 changed files with 2 additions and 1 deletions
|
@ -3860,7 +3860,8 @@ int ha_tokudb::info(uint flag) {
|
|||
goto exit;
|
||||
}
|
||||
rec_per_key = (stat64.bt_nkeys) ? stat64.bt_ndata/stat64.bt_nkeys : 0;
|
||||
table->key_info[i].rec_per_key[table->key_info[i].key_parts - 1] = (ulong)rec_per_key;
|
||||
table->key_info[i].rec_per_key[table->key_info[i].key_parts - 1] =
|
||||
(table->key_info[i].flags & HA_CLUSTERING) ? 0 : (ulong)rec_per_key;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue