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:
@ -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))
|
||||
|
Reference in New Issue
Block a user