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

MDEV-23764 Slave crashes in ha_storage_engine_is_enabled upon rename of view

view_pseudo_hton cannot be dereferenced
This commit is contained in:
Sergei Golubchik
2020-09-19 19:17:04 +02:00
parent 3cd4d8ddba
commit 73a2ae9f89
3 changed files with 6 additions and 3 deletions

View File

@ -303,7 +303,8 @@ do_rename(THD *thd, TABLE_LIST *ren_table, const LEX_CSTRING *new_db,
DBUG_RETURN(skip_error || if_exists ? 0 : 1);
}
if (ha_check_if_updates_are_ignored(thd, hton, "RENAME"))
if (hton != view_pseudo_hton &&
ha_check_if_updates_are_ignored(thd, hton, "RENAME"))
{
/*
Shared table. Just drop the old .frm as it's not correct anymore