]> git.kaiwu.me - nginx.git/commitdiff
update event flags after successful io_submit()
authorIgor Sysoev <igor@sysoev.ru>
Tue, 12 Oct 2010 12:11:11 +0000 (12:11 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 12 Oct 2010 12:11:11 +0000 (12:11 +0000)
src/os/unix/ngx_linux_aio_read.c

index 834a11d074c57031936d9b9c08b296ffca1caf3a..72875ca01016ea5dfb976dbcd69f0ecf00a99c27 100644 (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;
     }