Mercurial > hg > nginx-quic
comparison src/http/ngx_http_cache.h @ 3755:76e3a93821b1
fix race condition if during reconfiguration two cache managers try
to delete old inactive entries: one of them removes a entry just locked by
other manager from the queue and the rbtree as long inactive entry,
causes the latter manager to segfault leaving cache mutex locked,
the bug has been introduced in r3727
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 02 Sep 2010 14:31:47 +0000 |
parents | ce6ba077c270 |
children | e7cd13b7f759 |
comparison
equal
deleted
inserted
replaced
3754:5f58badd13ed | 3755:76e3a93821b1 |
---|---|
41 unsigned uses:10; | 41 unsigned uses:10; |
42 unsigned valid_msec:10; | 42 unsigned valid_msec:10; |
43 unsigned error:10; | 43 unsigned error:10; |
44 unsigned exists:1; | 44 unsigned exists:1; |
45 unsigned updating:1; | 45 unsigned updating:1; |
46 /* 12 unused bits */ | 46 unsigned deleting:1; |
47 /* 11 unused bits */ | |
47 | 48 |
48 ngx_file_uniq_t uniq; | 49 ngx_file_uniq_t uniq; |
49 time_t expire; | 50 time_t expire; |
50 time_t valid_sec; | 51 time_t valid_sec; |
51 size_t body_start; | 52 size_t body_start; |