MDEV-9728 - Hard crash in metadata_lock_info

Added missing target_thd initialization when processing local thread.
This commit is contained in:
Sergey Vojtovich 2016-06-21 23:34:31 +04:00
parent 21479a6bb3
commit 1f761c5615

View File

@ -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);
}