Mercurial > hg > nginx
comparison src/core/ngx_conf_file.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 | b7a7c02aea3a |
children |
comparison
equal
deleted
inserted
replaced
9295:c5623963c29e | 9296:af5b47569cb2 |
---|---|
87 | 87 |
88 | 88 |
89 struct ngx_open_file_s { | 89 struct ngx_open_file_s { |
90 ngx_fd_t fd; | 90 ngx_fd_t fd; |
91 ngx_str_t name; | 91 ngx_str_t name; |
92 | |
93 time_t disk_full_time; | |
92 | 94 |
93 void (*flush)(ngx_open_file_t *file, ngx_log_t *log); | 95 void (*flush)(ngx_open_file_t *file, ngx_log_t *log); |
94 void *data; | 96 void *data; |
95 }; | 97 }; |
96 | 98 |