mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
update event flags after successful io_submit()
This commit is contained in:
parent
89eae52df8
commit
3bff22f2e2
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue