mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-22878 galera.wsrep_strict_ddl hangs in 10.5 after merge
if mysql_create_view is aborted when `view` isn't unlinked, it should not be linked back on cleanup
This commit is contained in:
@ -458,7 +458,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
||||
if(!wsrep_should_replicate_ddl_iterate(thd, static_cast<const TABLE_LIST *>(tables)))
|
||||
{
|
||||
res= TRUE;
|
||||
goto err;
|
||||
goto err_no_relink;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -727,6 +727,7 @@ wsrep_error_label:
|
||||
|
||||
err:
|
||||
lex->link_first_table_back(view, link_to_local);
|
||||
err_no_relink:
|
||||
unit->cleanup();
|
||||
DBUG_RETURN(res || thd->is_error());
|
||||
}
|
||||
|
Reference in New Issue
Block a user