1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-27605 ALTER .. ADD PARTITION uses wrong partition-level option values

When a partition with engine-defined partition options is added by
ALTER, it shows the correct definition in SHOW CREATE, but the actual
values get inherited from the previous partition.

The cause of the bug is that the server did not parse the options
associated with the newly added partition.

In the case of ALTER, the complete part_info, which represents the
partition structure after ALTER, is built by prep_alter_part_table().
So, we need to parse engine-defined partition options after the call
of the function.
This commit is contained in:
Nayuta Yanagisawa
2022-01-25 13:26:21 +09:00
parent c1e88a635d
commit 0366fb5f54
3 changed files with 119 additions and 0 deletions

View File

@ -10318,6 +10318,8 @@ do_continue:;
{
DBUG_RETURN(true);
}
if (parse_engine_part_options(thd, table))
DBUG_RETURN(true);
}
#endif