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

MDEV-22128 : Server with wsrep_on crashes in do_rename upon RENAME TABLE on a view

We need to make sure that hton is not same as view_pseudo_hton
that is not NULL but not usable.
This commit is contained in:
Jan Lindström
2020-04-28 16:20:24 +03:00
parent e545a60bf4
commit 25cb2b373c
3 changed files with 13 additions and 1 deletions

View File

@ -323,7 +323,7 @@ do_rename(THD *thd, TABLE_LIST *ren_table, const LEX_CSTRING *new_db,
DBUG_ASSERT(!thd->locked_tables_mode);
#ifdef WITH_WSREP
if (WSREP(thd) && hton &&
if (WSREP(thd) && hton && hton != view_pseudo_hton &&
!wsrep_should_replicate_ddl(thd, hton->db_type))
DBUG_RETURN(1);
#endif