diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2018-01-29 11:01:14 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2018-01-29 11:01:14 +0400 |
commit | b4a2baffa82e5c07b96a1c752228560dcac1359b (patch) | |
tree | 5520b02f5c3bd21bf36f1fdf00a85dc9143c7fe5 /sql/partition_info.h | |
parent | 041a32abcdd9791761a15d93e77ff2ea7dbc9d7c (diff) | |
download | mariadb-git-b4a2baffa82e5c07b96a1c752228560dcac1359b.tar.gz |
MDEV-11084 Select statement with partition selection against MyISAM table opens all partitions.
Now we don't open partitions if it was explicitly cpecified.
ha_partition::m_opened_partition bitmap added to track
partitions that were actually opened.
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r-- | sql/partition_info.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h index 67a62874fcd..4a37008811a 100644 --- a/sql/partition_info.h +++ b/sql/partition_info.h @@ -325,7 +325,8 @@ public: partition_info *get_clone(THD *thd); bool set_named_partition_bitmap(const char *part_name, uint length); - bool set_partition_bitmaps(TABLE_LIST *table_list); + bool set_partition_bitmaps(List<String> *partition_names); + bool set_partition_bitmaps_from_table(TABLE_LIST *table_list); /* Answers the question if subpartitioning is used for a certain table */ bool is_sub_partitioned() { @@ -386,7 +387,7 @@ private: char *create_default_subpartition_name(THD *thd, uint subpart_no, const char *part_name); // FIXME: prune_partition_bitmaps() is duplicate of set_read_partitions() - bool prune_partition_bitmaps(TABLE_LIST *table_list); + bool prune_partition_bitmaps(List<String> *partition_names); bool add_named_partition(const char *part_name, uint length); public: bool set_read_partitions(List<char> *partition_names); |