1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-15456 Server crashes upon adding or dropping a partition in ALTER under LOCK TABLE after ER_SAME_NAME_PARTITION

followup for bcb36ee21e

move reopening before trans_commit_stmt(thd);
This commit is contained in:
Sergei Golubchik
2018-04-25 13:20:44 +02:00
parent 03da1253af
commit 619afb151b
6 changed files with 8 additions and 7 deletions

View File

@ -5136,6 +5136,10 @@ finish:
lex->unit.cleanup();
/* close/reopen tables that were marked to need reopen under LOCK TABLES */
if (! thd->lex->requires_prelocking())
thd->locked_tables_list.reopen_tables(thd, true);
if (! thd->in_sub_stmt)
{
if (thd->killed != NOT_KILLED)