From 2614a0ab0ffd802b3b9e62795979e83b6a10fcb3 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 20 Nov 2016 11:23:48 +0100 Subject: extend prelocking to FK-accessed tables --- sql/sp_head.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sp_head.cc') diff --git a/sql/sp_head.cc b/sql/sp_head.cc index c9c83d6ef22..0b9b503aef3 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -4268,7 +4268,7 @@ sp_head::add_used_tables_to_table_list(THD *thd, table->init_one_table_for_prelocking(key_buff, stab->db_length, key_buff + stab->db_length + 1, stab->table_name_length, key_buff + stab->db_length + stab->table_name_length + 2, - stab->lock_type, belong_to_view, stab->trg_event_map, + stab->lock_type, true, belong_to_view, stab->trg_event_map, query_tables_last_ptr); tab_buff+= ALIGN_SIZE(sizeof(TABLE_LIST)); -- cgit v1.2.1