trivial optimization
don't call write_bin_log() when binlog is known to be disable
This commit is contained in:
parent
8f1f869f68
commit
9e826bfa36
@ -4880,8 +4880,10 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table,
|
|||||||
/*
|
/*
|
||||||
We have to write the query before we unlock the tables.
|
We have to write the query before we unlock the tables.
|
||||||
*/
|
*/
|
||||||
if (!thd->is_current_stmt_binlog_disabled() &&
|
if (thd->is_current_stmt_binlog_disabled())
|
||||||
thd->is_current_stmt_binlog_format_row())
|
goto err;
|
||||||
|
|
||||||
|
if (thd->is_current_stmt_binlog_format_row())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Since temporary tables are not replicated under row-based
|
Since temporary tables are not replicated under row-based
|
||||||
|
Loading…
x
Reference in New Issue
Block a user