1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-27062: Make histogram_type=JSON_HB the new default

This commit is contained in:
Sergei Petrunia
2021-11-29 16:11:18 +03:00
parent eb6a9ad705
commit be55ad0d34
18 changed files with 119 additions and 119 deletions

View File

@@ -136,7 +136,7 @@ public:
We may end up producing a histogram with fewer buckets than intended, but
this is considered tolerable.
*/
bucket_capacity= round(rows2double(records) / histogram->get_width() + 0.5);
bucket_capacity= (longlong)round(rows2double(records) / histogram->get_width() + 0.5);
if (bucket_capacity == 0)
bucket_capacity= 1;
hist_width= histogram->get_width();