Skip to content

Commit

Permalink
Revert tolerance for EAGAIN when probing async I/O
Browse files Browse the repository at this point in the history
This reverts canonical/raft#485.

Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Apr 23, 2024
1 parent 9578db5 commit 14bc162
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/raft/uv_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,14 +840,6 @@ static int probeAsyncIO(int fd, size_t size, bool *ok, char *errmsg)
* errors, since we allocated the file with posix_fallocate and
* the block size is supposed to be correct. */
*ok = false;
if (event.res == -EAGAIN) {
/* If EAGAIN is encountered we assume the functionality
* is supported but this write would have blocked for
* some reason. UvWriter has a fallback mechanism to
* schedule writes on the thread pool in case the async
* write fails with EAGAIN, so this is safe. */
*ok = true;
}
}

return 0;
Expand Down

0 comments on commit 14bc162

Please sign in to comment.