update event flags after successful io_submit()

This commit is contained in:
Igor Sysoev 2010-10-12 12:11:11 +00:00
parent 89eae52df8
commit 3bff22f2e2

View File

@ -95,6 +95,10 @@ ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size, off_t offset,
n = io_submit(ngx_aio_ctx, 1, piocb);
if (n == 1) {
ev->active = 1;
ev->ready = 0;
ev->complete = 0;
return NGX_AGAIN;
}