mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 02:35:29 +02:00
MDEV-22146 - Server crashes in mysql_ha_flush_tables upon ALTER SERVER
Regression after bfdd30d. Initialize addition TABLE_LIST members which
are used by subsequent close_cached_tables() call.
This commit is contained in:
parent
2e2138baa5
commit
40c2cf335d
1 changed files with 3 additions and 1 deletions
|
|
@ -164,7 +164,9 @@ static my_bool close_cached_connection_tables_callback(
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
tmp->next_local= arg->tables;
|
||||
tmp->next_global= tmp->next_local= arg->tables;
|
||||
MDL_REQUEST_INIT(&tmp->mdl_request, MDL_key::TABLE, tmp->db.str,
|
||||
tmp->table_name.str, MDL_EXCLUSIVE, MDL_TRANSACTION);
|
||||
arg->tables= tmp;
|
||||
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue