Skip to content

Commit

Permalink
report correct write error on log writes
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Sep 26, 2016
1 parent f620da1 commit 8483659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2863,7 +2863,7 @@ bool MYSQL_QUERY_LOG::write(THD *thd, time_t current_time,
if (! write_error)
{
write_error= 1;
sql_print_error(ER(ER_ERROR_ON_WRITE), name, error);
sql_print_error(ER(ER_ERROR_ON_WRITE), name, tmp_errno);
}
}
}
Expand Down

0 comments on commit 8483659

Please sign in to comment.