Reset the error variable to B_OK in case we want to continue after allocating
only some sub requests worked. Previously we would have simply canceled all of the subrequests in the loop because we cancel after the first error. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32914 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -246,6 +246,9 @@ do_iterative_fd_io_iterate(void* _cookie, io_request* request,
|
||||
if (error != B_OK && subRequestCount == 0)
|
||||
return error;
|
||||
|
||||
// Reset the error code for the loop below
|
||||
error = B_OK;
|
||||
|
||||
request->Advance(requestOffset - cookie->request_offset);
|
||||
cookie->request_offset = requestOffset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user