Mercurial > hg > nginx
comparison src/core/ngx_log.h @ 9296:af5b47569cb2
Core: fixed ENOSPC handling for error logs.
For each connection a new ngx_log_t structure is created, and saving
anything into disk_full_time field in this structure doesn't affect
other connections. Fix is to move the disk_full_time field into the
ngx_open_file_t structure.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 25 Jun 2024 22:57:57 +0300 |
parents | f18db38a9826 |
children | 2706b60dc225 |
comparison
equal
deleted
inserted
replaced
9295:c5623963c29e | 9296:af5b47569cb2 |
---|---|
50 struct ngx_log_s { | 50 struct ngx_log_s { |
51 ngx_uint_t log_level; | 51 ngx_uint_t log_level; |
52 ngx_open_file_t *file; | 52 ngx_open_file_t *file; |
53 | 53 |
54 ngx_atomic_uint_t connection; | 54 ngx_atomic_uint_t connection; |
55 | |
56 time_t disk_full_time; | |
57 | 55 |
58 ngx_log_handler_pt handler; | 56 ngx_log_handler_pt handler; |
59 void *data; | 57 void *data; |
60 | 58 |
61 ngx_log_writer_pt writer; | 59 ngx_log_writer_pt writer; |