Mercurial > hg > nginx
comparison src/os/unix/ngx_files.c @ 4919:bd6299189b49
Core: added debug logging of writev() in ngx_write_chain_to_file().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 21 Nov 2012 00:52:35 +0000 |
parents | 4163fb9dcfcb |
children | 64ffc28850bb |
comparison
equal
deleted
inserted
replaced
4918:e7467ae41626 | 4919:bd6299189b49 |
---|---|
239 "writev() \"%s\" has written only %z of %uz", | 239 "writev() \"%s\" has written only %z of %uz", |
240 file->name.data, n, size); | 240 file->name.data, n, size); |
241 return NGX_ERROR; | 241 return NGX_ERROR; |
242 } | 242 } |
243 | 243 |
244 ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0, | |
245 "writev: %d, %z", file->fd, n); | |
246 | |
244 file->sys_offset += n; | 247 file->sys_offset += n; |
245 file->offset += n; | 248 file->offset += n; |
246 total += n; | 249 total += n; |
247 | 250 |
248 } while (cl); | 251 } while (cl); |