comparison src/http/ngx_http_file_cache.c @ 3024:8101d9101ed8

allow cross device temporary files atomic copying: *) ngx_copy_file() *) delete ngx_ext_rename_file_t.log_rename_error and .rename_error fields
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Aug 2009 12:05:33 +0000
parents 364ea8f54a2f
children 6060225e9261
comparison
equal deleted inserted replaced
3023:7d5501988fe3 3024:8101d9101ed8
648 ext.access = NGX_FILE_OWNER_ACCESS; 648 ext.access = NGX_FILE_OWNER_ACCESS;
649 ext.path_access = NGX_FILE_OWNER_ACCESS; 649 ext.path_access = NGX_FILE_OWNER_ACCESS;
650 ext.time = -1; 650 ext.time = -1;
651 ext.create_path = 1; 651 ext.create_path = 1;
652 ext.delete_file = 1; 652 ext.delete_file = 1;
653 ext.log_rename_error = 1;
654 ext.log = r->connection->log; 653 ext.log = r->connection->log;
655 654
656 rc = ngx_ext_rename_file(&tf->file.name, &c->file.name, &ext); 655 rc = ngx_ext_rename_file(&tf->file.name, &c->file.name, &ext);
657 656
658 if (rc == NGX_OK) { 657 if (rc == NGX_OK) {