Commit 157cc569 authored by petr@mysql.com's avatar petr@mysql.com

fix test failures

parent 35b7eb7e
......@@ -66,7 +66,8 @@ uint my_pread(File Filedes, byte *Buffer, uint Count, my_off_t offset,
pthread_mutex_unlock(&my_file_info[Filedes].mutex);
#else
error=((readbytes = (uint) pread(Filedes, Buffer, Count, offset)) != Count);
if ((error= ((readbytes =
(uint) pread(Filedes, Buffer, Count, offset)) != Count)))
my_errno= errno;
#endif
if (error || readbytes != Count)
......
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