diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-07-17 16:56:40 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-09-04 08:37:44 +0200 |
commit | 64a23c1c8a826a6f58f8a415f60a0e3cc0e0375f (patch) | |
tree | c0bfa925e95c87ac2dbe5df372fd884645033693 /sql/sp_head.cc | |
parent | 3b365fa82917ea0a29e11f160a80707d27b9948a (diff) | |
download | mariadb-git-64a23c1c8a826a6f58f8a415f60a0e3cc0e0375f.tar.gz |
extend prelocking to FK-accessed tables
Backport of f1362910980
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 4c88fc5809a..701036d10d0 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -4231,7 +4231,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)); |