1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -952,10 +952,7 @@ void close_thread_tables(THD *thd)
we will exit this function a few lines below.
*/
if (! thd->lex->requires_prelocking())
{
thd->locked_tables_list.reopen_tables(thd, true);
DBUG_VOID_RETURN;
}
/*
We are in the top-level statement of a prelocked statement,