mirror of
https://github.com/nginx/nginx.git
synced 2024-11-26 02:40:46 -06:00
test the most relevant condition first
This commit is contained in:
parent
9afd58ffe5
commit
a250a521d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user