Commit 40c2cf33 authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-22146 - Server crashes in mysql_ha_flush_tables upon ALTER SERVER

Regression after bfdd30d3. Initialize addition TABLE_LIST members which
are used by subsequent close_cached_tables() call.
parent 2e2138ba
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment