]> git.kaiwu.me - nginx.git/commit
Cache: ignore long locked entries during forced expire.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 18 May 2017 15:39:16 +0000 (18:39 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 18 May 2017 15:39:16 +0000 (18:39 +0300)
commitc6df6bf9239a54655525b7871a66dd35744692c2
tree6f4dcf20783d0dbe489b3626489ba0b957d36e75
parent9359155b2fb443ac3c2cf0d897d5db668585235b
Cache: ignore long locked entries during forced expire.

Abnormally exited workers may leave locked cache entries, this can
result in the cache size on disk exceeding max_size and shared memory
exhaustion.

This change mitigates the issue by ignoring locked entries during forced
expire.  It also increases the visibility of the problem by logging such
entries.
src/http/ngx_http_file_cache.c