1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-22155 ALTER add default history partitions name clash on non-default partitions

If any of default names clashes with existing names find next large
enough name gap for the requested number of partitions.
This commit is contained in:
Aleksey Midenkov
2020-04-27 16:36:03 +03:00
parent e174fa9d79
commit 73aa78ea9d
5 changed files with 109 additions and 10 deletions

View File

@ -5135,7 +5135,7 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
alt_part_info->part_type= tab_part_info->part_type;
alt_part_info->subpart_type= tab_part_info->subpart_type;
if (alt_part_info->set_up_defaults_for_partitioning(thd, table->file, 0,
tab_part_info->num_parts))
tab_part_info->next_part_no(num_new_partitions)))
{
goto err;
}