comparison src/core/ngx_open_file_cache.c @ 2072:ee2fecdfdef7

variables in access_log
author Igor Sysoev <igor@sysoev.ru>
date Mon, 30 Jun 2008 12:27:24 +0000
parents 2d216377146a
children 25add486e7aa
comparison
equal deleted inserted replaced
2071:2d216377146a 2072:ee2fecdfdef7
458 if (of->is_dir) { 458 if (of->is_dir) {
459 goto done; 459 goto done;
460 } 460 }
461 } 461 }
462 462
463 fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); 463 if (!of->log) {
464 fd = ngx_open_file(name, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
465
466 } else {
467 fd = ngx_open_file(name, NGX_FILE_RDWR,
468 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND,
469 NGX_FILE_DEFAULT_ACCESS);
470 }
464 471
465 if (fd == NGX_INVALID_FILE) { 472 if (fd == NGX_INVALID_FILE) {
466 goto failed; 473 goto failed;
467 } 474 }
468 475