diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-11-20 11:23:48 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:40 +0100 |
commit | 2614a0ab0ffd802b3b9e62795979e83b6a10fcb3 (patch) | |
tree | ab685c0b866e79af58101242abeecca59bcb767e /sql/sp_head.cc | |
parent | f136291098007d9b4b1a14419292892a2ea1178b (diff) | |
download | mariadb-git-2614a0ab0ffd802b3b9e62795979e83b6a10fcb3.tar.gz |
extend prelocking to FK-accessed tables
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |