mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
compatibility fixes
mysql-test/r/show_check.result: results updated sql/opt_range.cc: wrong (I believe :) cast fixed
This commit is contained in:
@ -1759,7 +1759,7 @@ double get_sweep_read_cost(const PARAM *param, ha_rows records)
|
||||
else
|
||||
{
|
||||
double n_blocks=
|
||||
ceil((double)((longlong)param->table->file->data_file_length / IO_SIZE));
|
||||
ceil((double)param->table->file->data_file_length / IO_SIZE);
|
||||
double busy_blocks=
|
||||
n_blocks * (1.0 - pow(1.0 - 1.0/n_blocks, rows2double(records)));
|
||||
if (busy_blocks < 1.0)
|
||||
|
Reference in New Issue
Block a user