Commit d613f059 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

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
parent 5a3b7a49
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment