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

[t:885], fix divide by zero error

git-svn-id: file:///svn/mysql/tokudb-engine/src@14354 c7de825b-a66e-492c-adef-691d508d4ae1
parent 72a04347
...@@ -3965,7 +3965,7 @@ int ha_tokudb::info(uint flag) { ...@@ -3965,7 +3965,7 @@ int ha_tokudb::info(uint flag) {
if (error) { goto cleanup; } if (error) { goto cleanup; }
stats.data_file_length = dict_stats.bt_dsize; stats.data_file_length = dict_stats.bt_dsize;
stats.mean_rec_length = stats.data_file_length/stats.records; stats.mean_rec_length = stats.records ? stats.data_file_length/stats.records : 0;
stats.index_file_length = 0; stats.index_file_length = 0;
for (uint i = 0; i < curr_num_DBs; i++) { for (uint i = 0; i < curr_num_DBs; i++) {
if (i == primary_key) { if (i == primary_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