summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-04-25 13:20:44 +0200
committerSergei Golubchik <serg@mariadb.org>2018-04-26 14:08:03 +0200
commit619afb151b38a538ef64d5387643c01f86e203d8 (patch)
tree850aa65e1c465295d39387a10684379144d70e85 /sql/sql_base.cc
parent03da1253af4b1a9a47ffd7c6904af266718bc0b1 (diff)
downloadmariadb-git-619afb151b38a538ef64d5387643c01f86e203d8.tar.gz
MDEV-15456 Server crashes upon adding or dropping a partition in ALTER under LOCK TABLE after ER_SAME_NAME_PARTITION
followup for bcb36ee21e2 move reopening before trans_commit_stmt(thd);
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index f7de4e4f3c2..554c8cffeaf 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -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,