Mercurial > hg > nginx
comparison src/core/ngx_open_file_cache.c @ 1458:614090b26fbf
test the most relevant condition first
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 03 Sep 2007 09:06:26 +0000 |
parents | 223e92651ca5 |
children | 4fc402c3ec73 |
comparison
equal
deleted
inserted
replaced
1457:223e92651ca5 | 1458:614090b26fbf |
---|---|
351 | 351 |
352 file->count = 0; | 352 file->count = 0; |
353 | 353 |
354 update: | 354 update: |
355 | 355 |
356 if ((ngx_event_flags & NGX_USE_VNODE_EVENT) | 356 if (of->events |
357 && of->events | 357 && (ngx_event_flags & NGX_USE_VNODE_EVENT) |
358 && of->fd != NGX_INVALID_FILE) | 358 && of->fd != NGX_INVALID_FILE) |
359 { | 359 { |
360 file->event = ngx_calloc(sizeof(ngx_event_t), pool->log); | 360 file->event = ngx_calloc(sizeof(ngx_event_t), pool->log); |
361 if (file->event== NULL) { | 361 if (file->event== NULL) { |
362 goto failed; | 362 goto failed; |