mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
test the most relevant condition first
This commit is contained in:
parent
9afd58ffe5
commit
a250a521d3
@ -353,8 +353,8 @@ create:
|
|||||||
|
|
||||||
update:
|
update:
|
||||||
|
|
||||||
if ((ngx_event_flags & NGX_USE_VNODE_EVENT)
|
if (of->events
|
||||||
&& of->events
|
&& (ngx_event_flags & NGX_USE_VNODE_EVENT)
|
||||||
&& of->fd != NGX_INVALID_FILE)
|
&& of->fd != NGX_INVALID_FILE)
|
||||||
{
|
{
|
||||||
file->event = ngx_calloc(sizeof(ngx_event_t), pool->log);
|
file->event = ngx_calloc(sizeof(ngx_event_t), pool->log);
|
||||||
|
Loading…
Reference in New Issue
Block a user