mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
BUG#51021: current_stmt_binlog_row_based not removed in next-mr
A closely related problem, hardly worth a new bug report: Removed a spurious call to: thd->set_current_stmt_binlog_format_row_if_mixed() in sql_base.cc:lock_tables().
This commit is contained in:
@@ -5180,10 +5180,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count, bool *need_reopen)
|
|||||||
*/
|
*/
|
||||||
if (thd->variables.binlog_format != BINLOG_FORMAT_ROW && tables &&
|
if (thd->variables.binlog_format != BINLOG_FORMAT_ROW && tables &&
|
||||||
has_write_table_with_auto_increment(thd->lex->first_not_own_table()))
|
has_write_table_with_auto_increment(thd->lex->first_not_own_table()))
|
||||||
{
|
|
||||||
thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_TWO_AUTOINC_COLUMNS);
|
thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_TWO_AUTOINC_COLUMNS);
|
||||||
thd->set_current_stmt_binlog_format_row_if_mixed();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_SYNC(thd, "before_lock_tables_takes_lock");
|
DEBUG_SYNC(thd, "before_lock_tables_takes_lock");
|
||||||
|
Reference in New Issue
Block a user