Below is the list of changes that have just been committed into a local
5.0 repository of hf. When hf does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-10-23 16:32:05+05:00, holyfoot@stripped +2 -0
type conversions fixed to get rid of warnings
sql/ha_heap.cc@stripped, 2007-10-23 16:32:03+05:00, holyfoot@stripped +1 -1
type conversion fix
sql/opt_range.cc@stripped, 2007-10-23 16:32:03+05:00, holyfoot@stripped +3 -3
type conversion fix
diff -Nrup a/sql/ha_heap.cc b/sql/ha_heap.cc
--- a/sql/ha_heap.cc 2007-10-23 14:27:09 +05:00
+++ b/sql/ha_heap.cc 2007-10-23 16:32:03 +05:00
@@ -175,7 +175,7 @@ void ha_heap::update_key_stats()
else
{
ha_rows hash_buckets= file->s->keydef[i].hash_buckets;
- uint no_records= hash_buckets ? (uint) file->s->records/hash_buckets : 2;
+ uint no_records= hash_buckets ? (uint) (file->s->records/hash_buckets) : 2;
if (no_records < 2)
no_records= 2;
key->rec_per_key[key->key_parts-1]= no_records;
diff -Nrup a/sql/opt_range.cc b/sql/opt_range.cc
--- a/sql/opt_range.cc 2007-10-23 15:34:08 +05:00
+++ b/sql/opt_range.cc 2007-10-23 16:32:03 +05:00
@@ -8376,14 +8376,14 @@ void cost_group_min_max(TABLE* table, KE
keys_per_block= (table->file->block_size / 2 /
(index_info->key_length + table->file->ref_length)
+ 1);
- num_blocks= (table_records / keys_per_block) + 1;
+ num_blocks= (uint)(table_records / keys_per_block) + 1;
/* Compute the number of keys in a group. */
keys_per_group= index_info->rec_per_key[group_key_parts - 1];
if (keys_per_group == 0) /* If there is no statistics try to guess */
/* each group contains 10% of all records */
- keys_per_group= (table_records / 10) + 1;
- num_groups= (table_records / keys_per_group) + 1;
+ keys_per_group= (uint)(table_records / 10) + 1;
+ num_groups= (uint)(table_records / keys_per_group) + 1;
/* Apply the selectivity of the quick select for group prefixes. */
if (range_tree && (quick_prefix_records != HA_POS_ERROR))
| Thread |
|---|
| • bk commit into 5.0 tree (holyfoot:1.2553) | holyfoot | 23 Oct |