You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
process_ibfile assumes that partial reads (returns less than the requested
amount of data) indicates an error. That is not an error and more likely
when reading from NFS.
------
The code from process_ibfile is:
// Read pages to the end of file
while ((read_bytes = read(fn, page, UNIV_PAGE_SIZE)) ==
UNIV_PAGE_SIZE) {
------
The reads should be retried until -1 is returned. From the man page:
On success, the number of bytes read is returned (zero indicates end
of file), and the file position is advanced by this number. It is not an
error if this number is smaller than
the number of bytes requested; this may happen for example because
fewer bytes are actually available right now (maybe because we were close
to end-of-file, or because we are
reading from a pipe, or from a terminal), or because read() was
interrupted by a signal. On error, -1 is returned, and errno is set
appropriately. In this case it is left unspec-
ified whether the file position (if any) changes.
Original issue reported on code.google.com by [email protected] on 8 Oct 2009 at 4:03
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 8 Oct 2009 at 4:03The text was updated successfully, but these errors were encountered: