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:
Zardosht Kasheff 2009-04-21 17:52:23 +00:00 committed by Yoni Fogel
parent 5a3b7a49e3
commit d613f05980

View file

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