summaryrefslogtreecommitdiff
path: root/sql/temporary_tables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/temporary_tables.cc')
-rw-r--r--sql/temporary_tables.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/temporary_tables.cc b/sql/temporary_tables.cc
index 908d28f6629..54ce3b61f79 100644
--- a/sql/temporary_tables.cc
+++ b/sql/temporary_tables.cc
@@ -1398,7 +1398,8 @@ bool THD::log_events_and_free_tmp_shares()
get_stmt_da()->set_overwrite_status(true);
transaction.stmt.mark_dropped_temp_table();
- if ((error= (mysql_bin_log.write(&qinfo) || error)))
+ bool error2= mysql_bin_log.write(&qinfo);
+ if (unlikely(error|= error2))
{
/*
If we're here following THD::cleanup, thence the connection