From: Igor Sysoev Date: Mon, 3 Sep 2007 09:06:26 +0000 (+0000) Subject: test the most relevant condition first X-Git-Tag: release-0.6.10~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=a250a521d3369f57355d98289d48f039bf4c626c;p=nginx.git test the most relevant condition first --- diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index 87104a04a..dab98b3ff 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -353,8 +353,8 @@ create: update: - if ((ngx_event_flags & NGX_USE_VNODE_EVENT) - && of->events + if (of->events + && (ngx_event_flags & NGX_USE_VNODE_EVENT) && of->fd != NGX_INVALID_FILE) { file->event = ngx_calloc(sizeof(ngx_event_t), pool->log);