diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2003-11-14 07:20:34 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-14 07:20:34 +0000 |
| commit | 7f9d894e1069306f7361201a77efbe7b866024ff (patch) | |
| tree | 9779ce5dd7d38af4c8039047768cedc92c31ec1f /src/http/ngx_http_cache.c | |
| parent | 45890ea8c13a561fe3fd66bf639ad429f3c18846 (diff) | |
| download | nginx-7f9d894e1069306f7361201a77efbe7b866024ff.tar.gz nginx-7f9d894e1069306f7361201a77efbe7b866024ff.tar.bz2 | |
nginx-0.0.1-2003-11-14-10:20:34 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_cache.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/http/ngx_http_cache.c b/src/http/ngx_http_cache.c index 299455ba3..6e64af140 100644 --- a/src/http/ngx_http_cache.c +++ b/src/http/ngx_http_cache.c @@ -140,9 +140,7 @@ int ngx_http_cache_update_file(ngx_http_request_t *r, ngx_http_cache_ctx_t *ctx, retry = 0; for ( ;; ) { - if (ngx_rename_file(temp_file->data, ctx->file.name.data) - != NGX_FILE_ERROR) - { + if (ngx_rename_file(temp_file, (&ctx->file.name), r->pool) == NGX_OK) { return NGX_OK; } |
