1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-25837 Assertion `thd->locked_tables_mode == LTM_NONE' failed in Locked_tables_list::init_locked_tables.

don't do prelocking for the FLUSH command.
This commit is contained in:
Alexey Botchkov
2021-06-29 16:03:26 +04:00
parent 0237e9bb65
commit c2ebe8147d
3 changed files with 26 additions and 1 deletions

View File

@ -722,6 +722,19 @@ drop view v1, v2;
drop table t1;
disconnect con1;
--echo #
--echo # MDEV-25837 Assertion `thd->locked_tables_mode == LTM_NONE' failed in Locked_tables_list::init_locked_tables.
--echo #
CREATE FUNCTION f() RETURNS INTEGER RETURN 1;
CREATE TABLE t (a INT);
CREATE VIEW v AS SELECT 2 FROM t WHERE f() < 3;
FLUSH TABLE v WITH READ LOCK;
UNLOCK TABLES;
DROP VIEW v;
DROP FUNCTION f;
DROP TABLE t;
--echo #
--echo # Test FLUSH THREADS