From 84b20ca18b07c4f27d3ae7a9b3660b184b051057 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 13 Sep 2009 06:28:17 +0000 Subject: fix case when the output filter should add incoming buffers while waiting on file AIO completion --- src/core/ngx_buf.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/core/ngx_buf.h') diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h index ba4854489..847eaad05 100644 --- a/src/core/ngx_buf.h +++ b/src/core/ngx_buf.h @@ -89,6 +89,11 @@ struct ngx_output_chain_ctx_s { #endif unsigned need_in_memory:1; unsigned need_in_temp:1; +#if (NGX_HAVE_FILE_AIO) + unsigned aio:1; + + ngx_output_chain_aio_pt aio_handler; +#endif off_t alignment; @@ -99,10 +104,6 @@ struct ngx_output_chain_ctx_s { ngx_output_chain_filter_pt output_filter; void *filter_ctx; - -#if (NGX_HAVE_FILE_AIO) - ngx_output_chain_aio_pt aio; -#endif }; -- cgit