Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 6776:1bf4f21b1b72
Core: show file contents only once while dumping configuration.
Files are considered the same if the path used by nginx during parsing matches.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 18 Oct 2016 16:33:38 +0300 |
parents | 3a50ccd94333 |
children | 30b6f1ff192b |
comparison
equal
deleted
inserted
replaced
6775:8081e1f3ab8b | 6776:1bf4f21b1b72 |
---|---|
130 { | 130 { |
131 ngx_destroy_pool(pool); | 131 ngx_destroy_pool(pool); |
132 return NULL; | 132 return NULL; |
133 } | 133 } |
134 | 134 |
135 ngx_rbtree_init(&cycle->config_dump_rbtree, &cycle->config_dump_sentinel, | |
136 ngx_str_rbtree_insert_value); | |
137 | |
135 if (old_cycle->open_files.part.nelts) { | 138 if (old_cycle->open_files.part.nelts) { |
136 n = old_cycle->open_files.part.nelts; | 139 n = old_cycle->open_files.part.nelts; |
137 for (part = old_cycle->open_files.part.next; part; part = part->next) { | 140 for (part = old_cycle->open_files.part.next; part; part = part->next) { |
138 n += part->nelts; | 141 n += part->nelts; |
139 } | 142 } |