mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -802,8 +802,8 @@ bool Sql_cmd_alter_table_truncate_partition::execute(THD *thd)
|
||||
DBUG_RETURN(true);
|
||||
partition_names_list.push_back(str_partition_name, thd->mem_root);
|
||||
}
|
||||
first_table->partition_names= &partition_names_list;
|
||||
if (first_table->table->part_info->set_partition_bitmaps(first_table))
|
||||
if (first_table->table->
|
||||
part_info->set_partition_bitmaps(&partition_names_list))
|
||||
DBUG_RETURN(true);
|
||||
|
||||
if (lock_tables(thd, first_table, table_counter, 0))
|
||||
|
Reference in New Issue
Block a user