Commit 1f761c56 authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-9728 - Hard crash in metadata_lock_info

Added missing target_thd initialization when processing local thread.
parent 21479a6b
......@@ -174,7 +174,10 @@ static int i_s_metadata_lock_info_fill_table(THD *thd, TABLE_LIST *tables,
delete_dynamic(&ids);
if (info.error == 0)
{
info.target_thd= thd;
info.call_in_target_thread();
}
DBUG_RETURN(info.error);
}
......
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