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

MDEV-14817 Server crashes in prep_alter_part_table() after table lock and multiple add partition [fixes #440]

Cause: `table->part_info` is stale after `prep_alter_part_table()` while
`table->m_needs_reopen == true`.

Fix: restore `table->part_info` in case of error in `prep_alter_part_table()`.

Tested with main, parts, innodb suites.
This commit is contained in:
Aleksey Midenkov
2018-01-03 19:47:01 +03:00
parent dbf21ff396
commit daf883f95c
4 changed files with 35 additions and 2 deletions

View File

@ -1797,8 +1797,9 @@ private:
class Locked_tables_list
{
private:
public:
MEM_ROOT m_locked_tables_root;
private:
TABLE_LIST *m_locked_tables;
TABLE_LIST **m_locked_tables_last;
/** An auxiliary array used only in reopen_tables(). */