diff options
author | monty@donna.mysql.fi <> | 2001-04-21 03:03:08 +0300 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-04-21 03:03:08 +0300 |
commit | 0f37b1244b8356f32ef58245d94a3a920e047428 (patch) | |
tree | ff63dbaef15a49c7e3b47265d215520cb4cabcab /sql/opt_range.cc | |
parent | c8fbe93890953c7e00700c3a0d5f6858e6335b95 (diff) | |
download | mariadb-git-0f37b1244b8356f32ef58245d94a3a920e047428.tar.gz |
Fixed portability problems in mysqlcheck
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 98be3639a06..b95b97d670f 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -697,7 +697,9 @@ int SQL_SELECT::test_quick_select(key_map keys_to_use, table_map prev_tables, ** and that all key blocks are half full (normally things are ** much better) */ - uint keys_per_block= head->file->block_size/2/head->key_info[param.real_keynr[idx]].key_length+1; + uint keys_per_block= head->file->block_size/2/ + (head->key_info[param.real_keynr[idx]].key_length+ + head->file->ref_length) + 1; found_read_time=((double) (found_records+keys_per_block-1)/ (double) keys_per_block); } |