[PATCH]Upstream: delete temp file when error in ngx_http_upstream_store().

Maxim Dounin mdounin at mdounin.ru
Tue Jul 8 11:47:34 UTC 2014


Hello!

On Tue, Jul 08, 2014 at 10:28:44AM +0800, flygoast wrote:

> Thanks for reply.
> When ngx_ext_rename_file() return NGX_ERROR, it should has called ngx_delete_file().
> So I think maybe also should change "ext.delete_file = 1;" to "ext.delete_file = 0;".

Thanks, missed this.  Probably it would be easier to just leave 
the "(void) ngx_ext_rename_file" as is then.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list