MDEV-10824 - Crash in CREATE OR REPLACE TABLE t1 AS SELECT spfunc()
followup for a3c980b381ea same change in Locked_tables_list::unlink_from_list(), otherwise thd->locked_tables_list will keep pointers to a free'd TABLE if prelocked under lock tables. This fixes a crash in main.create_or_replace on debug Win builds after bcb36ee21e25
This commit is contained in:
parent
9fffa9374c
commit
f2433b8dd3
@ -2872,7 +2872,8 @@ void Locked_tables_list::unlink_from_list(THD *thd,
|
||||
If mode is not LTM_LOCK_TABLES, we needn't do anything. Moreover,
|
||||
outside this mode pos_in_locked_tables value is not trustworthy.
|
||||
*/
|
||||
if (thd->locked_tables_mode != LTM_LOCK_TABLES)
|
||||
if (thd->locked_tables_mode != LTM_LOCK_TABLES &&
|
||||
thd->locked_tables_mode != LTM_PRELOCKED_UNDER_LOCK_TABLES)
|
||||
return;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user