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:
@ -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(). */
|
||||
|
Reference in New Issue
Block a user