report correct write error on log writes

This commit is contained in:
Sergei Golubchik 2016-09-24 10:06:58 +02:00
parent f620da194b
commit 8483659f4f

View File

@ -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);
}
}
}