mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
update event flags after successful io_submit()
This commit is contained in:
parent
89eae52df8
commit
3bff22f2e2
@ -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…
Reference in New Issue
Block a user