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
@ -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…
x
Reference in New Issue
Block a user