Skip to content

Commit

Permalink
Merge pull request #641 from cole-miller/fix-bionic-regression
Browse files Browse the repository at this point in the history
Revert tolerance for EAGAIN when probing async I/O
  • Loading branch information
cole-miller authored Apr 24, 2024
2 parents 84b22a8 + 14bc162 commit a51c66d
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 a51c66d

Please sign in to comment.