aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_cache.h')
-rw-r--r--src/http/ngx_http_cache.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/http/ngx_http_cache.h b/src/http/ngx_http_cache.h
index f84c61895..232f09674 100644
--- a/src/http/ngx_http_cache.h
+++ b/src/http/ngx_http_cache.h
@@ -94,16 +94,21 @@ typedef struct {
} ngx_http_file_cache_header_t;
+typedef struct {
+ ngx_rbtree_t rbtree;
+ ngx_rbtree_node_t sentinel;
+ ngx_queue_t queue;
+ ngx_atomic_t cold;
+ off_t size;
+} ngx_http_file_cache_sh_t;
+
+
struct ngx_http_file_cache_s {
- ngx_rbtree_t *rbtree;
- ngx_queue_t *queue;
+ ngx_http_file_cache_sh_t *sh;
ngx_slab_pool_t *shpool;
ngx_path_t *path;
- ngx_atomic_t *cold;
- off_t *size;
-
off_t max_size;
size_t bsize;