diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2017-10-22 13:01:33 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-10-22 20:23:09 +0300 |
commit | 7204f66c6a008c02c923b0f431372f9ea75d6f06 (patch) | |
tree | 23ccde72c4297f4e0298a60b0057f61bee5d02ab /sql/sql_sequence.cc | |
parent | 7447b4ce37211e3450dcdbd1cb39b0b63d8c0751 (diff) | |
download | mariadb-git-7204f66c6a008c02c923b0f431372f9ea75d6f06.tar.gz |
MDEV-13711 Assertion failure on CREATE TABLE .. LIKE <sequence>
Fixes two issues:
- Update assert in open_and_process_tables to handle sequences
- Removed not needed and conflicting mdl_context.release_transactional_locks
in sql_sequence.cc. The MDL lock is released at end of
mysql_execute_command().
Signed-off-by: Monty <monty@mariadb.org>
Diffstat (limited to 'sql/sql_sequence.cc')
-rw-r--r-- | sql/sql_sequence.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_sequence.cc b/sql/sql_sequence.cc index 1d8db1a7cd9..c454d6267d4 100644 --- a/sql/sql_sequence.cc +++ b/sql/sql_sequence.cc @@ -334,7 +334,6 @@ bool sequence_insert(THD *thd, LEX *lex, TABLE_LIST *table_list) trans_commit_implicit(thd); if (!temporary_table) close_thread_tables(thd); - thd->mdl_context.release_transactional_locks(); DBUG_RETURN(error); } |