1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

extend prelocking to FK-accessed tables

This commit is contained in:
Sergei Golubchik
2016-11-20 11:23:48 +01:00
parent f136291098
commit 2614a0ab0f
6 changed files with 155 additions and 4 deletions

View File

@ -5653,7 +5653,8 @@ int THD::decide_logging_format(TABLE_LIST *tables)
replicated_tables_count++;
if (table->lock_type <= TL_READ_NO_INSERT)
if (table->lock_type <= TL_READ_NO_INSERT &&
table->prelocking_placeholder != TABLE_LIST::FK)
has_read_tables= true;
else if (table->table->found_next_number_field &&
(table->lock_type >= TL_WRITE_ALLOW_WRITE))