Commit efaa28ab authored by Alexander Nozdrin's avatar Alexander Nozdrin

Post-merge fix.

parent 83aa3cf4
......@@ -1183,11 +1183,9 @@ bool mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
{
/* In RBR, the statement is not binlogged if the table is temporary. */
if (!is_temporary_table || !thd->current_stmt_binlog_row_based)
{
error= write_bin_log(thd, TRUE, thd->query(), thd->query_length());
if (!error)
my_ok(thd); // This should return record count
}
if (!error)
my_ok(thd); // This should return record count
}
pthread_mutex_lock(&LOCK_open);
unlock_table_name(thd, table_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment