[Tarantool-patches] [PATCH v2] fio/coio: Handle partial writes
Cyrill Gorcunov
gorcunov at gmail.com
Wed Dec 4 14:25:58 MSK 2019
On Wed, Dec 04, 2019 at 02:17:49PM +0300, Cyrill Gorcunov wrote:
...
> +static inline int
> +write_should_retry(void)
> +{
> + /* Retry on O_NONBLOCK */
> + if (errno == EAGAIN)
> + return true;
> + /* Retry if been interrupted */
> + if (errno == EINTR)
> + return true;
> + /* Unexpected error */
> + return false;
> +}
Guys, I just thought, previously if the file we're writting to
has been opened with o_nonblock and eagain happened we were
returning an error. With this patch we gonna retry write operation,
and this changes behaviour. Maybe I should consider EINTR only?
More information about the Tarantool-patches
mailing list