diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-12-25 13:56:50 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2009-12-25 13:56:50 +0300 |
commit | 3ba6a2a9fa3fc7eed89ec612eb4f4ed6645bcd7d (patch) | |
tree | d33ce0a47fbf5181f9c5ebfeddb7830a2e9f7223 /sql/ha_partition.h | |
parent | 4c61db988714676e71175fbbf20173b9a96d06c2 (diff) | |
parent | 916b559b10d06574ac77ab549785726ba2878222 (diff) | |
download | mariadb-git-3ba6a2a9fa3fc7eed89ec612eb4f4ed6645bcd7d.tar.gz |
Manual merge of mysql-5.1-bugteam into mysql-trunk-merge.
Conflicts:
mysql-test/collections/default.experimental
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index d4579d013fd..b2021f4fd89 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -552,6 +552,18 @@ public: ------------------------------------------------------------------------- */ +private: + /* + Helper function to get the minimum number of partitions to use for + the optimizer hints/cost calls. + */ + void partitions_optimizer_call_preparations(uint *num_used_parts, + uint *check_min_num, + uint *first); + ha_rows estimate_rows(bool is_records_in_range, uint inx, + key_range *min_key, key_range *max_key); +public: + /* keys_to_use_for_scanning can probably be implemented as the intersection of all underlying handlers if mixed handlers are used. |