Mercurial > hg > nginx-quic
comparison src/core/ngx_open_file_cache.c @ 1938:ed71d58c0cf3
fix the previous commit
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 13 Mar 2008 13:00:40 +0000 |
parents | c46432b9dbb7 |
children | 7df9b30e2361 |
comparison
equal
deleted
inserted
replaced
1937:c46432b9dbb7 | 1938:ed71d58c0cf3 |
---|---|
409 if (file && file->count == 0) { | 409 if (file && file->count == 0) { |
410 ngx_rbtree_delete(&cache->rbtree, &file->node); | 410 ngx_rbtree_delete(&cache->rbtree, &file->node); |
411 | 411 |
412 cache->current--; | 412 cache->current--; |
413 | 413 |
414 if (of->fd != NGX_INVALID_FILE) { | 414 if (file->fd != NGX_INVALID_FILE) { |
415 if (ngx_close_file(file->fd) == NGX_FILE_ERROR) { | 415 if (ngx_close_file(file->fd) == NGX_FILE_ERROR) { |
416 ngx_log_error(NGX_LOG_ALERT, pool->log, ngx_errno, | 416 ngx_log_error(NGX_LOG_ALERT, pool->log, ngx_errno, |
417 ngx_close_file_n " \"%s\" failed", file->name); | 417 ngx_close_file_n " \"%s\" failed", file->name); |
418 } | 418 } |
419 } | 419 } |