Skip to content

Commit f4f4a2c

Browse files
author
Luis Soares
committed
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().
1 parent 7d213e8 commit f4f4a2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sql/sql_base.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,10 +5180,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count, bool *need_reopen)
51805180
*/
51815181
if (thd->variables.binlog_format != BINLOG_FORMAT_ROW && tables &&
51825182
has_write_table_with_auto_increment(thd->lex->first_not_own_table()))
5183-
{
51845183
thd->lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_TWO_AUTOINC_COLUMNS);
5185-
thd->set_current_stmt_binlog_format_row_if_mixed();
5186-
}
51875184
}
51885185

51895186
DEBUG_SYNC(thd, "before_lock_tables_takes_lock");

0 commit comments

Comments
 (0)