Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 1693:f4eb04fd8579
use malloc() in ngx_win32_rename_file, set crit level instead of error
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 07 Dec 2007 19:57:13 +0000 |
parents | 1e0b028055ec |
children | 976db8c6fb64 |
comparison
equal
deleted
inserted
replaced
1692:2f091d33dcb3 | 1693:f4eb04fd8579 |
---|---|
2222 } | 2222 } |
2223 | 2223 |
2224 #if (NGX_WIN32) | 2224 #if (NGX_WIN32) |
2225 | 2225 |
2226 if (err == NGX_EEXIST) { | 2226 if (err == NGX_EEXIST) { |
2227 if (ngx_win32_rename_file(temp, &path, r->pool) != NGX_ERROR) { | 2227 if (ngx_win32_rename_file(temp, &path, r->connection->log) == NGX_OK) { |
2228 | 2228 |
2229 if (ngx_rename_file(temp->data, path.data) != NGX_FILE_ERROR) { | 2229 if (ngx_rename_file(temp->data, path.data) != NGX_FILE_ERROR) { |
2230 return; | 2230 return; |
2231 } | 2231 } |
2232 } | 2232 } |