Mercurial > hg > nginx
comparison src/misc/ngx_google_perftools_module.c @ 4782:e23892a0c917
Fixed possible use of old cached times if runtime went backwards.
If ngx_time_sigsafe_update() updated only ngx_cached_err_log_time, and
then clock was adjusted backwards, the cached_time[slot].sec might
accidentally match current seconds on next ngx_time_update() call,
resulting in various cached times not being updated.
Fix is to clear the cached_time[slot].sec to explicitly mark cached times
are stale and need updating.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 03 Aug 2012 09:10:39 +0000 |
parents | d620f497c50f |
children | a27e0c7e198c |
comparison
equal
deleted
inserted
replaced
4781:814541b2ec23 | 4782:e23892a0c917 |
---|