aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_cycle.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2016-10-18 16:33:38 +0300
committerVladimir Homutov <vl@nginx.com>2016-10-18 16:33:38 +0300
commit33f940534e89c599998ed9e516af565e6372e700 (patch)
tree4cd712fa06a2b0d8fe2743fc554f78f53257233c /src/core/ngx_cycle.c
parent841737915c97ae07f626c8199c24679151bebfcd (diff)
downloadnginx-33f940534e89c599998ed9e516af565e6372e700.tar.gz
nginx-33f940534e89c599998ed9e516af565e6372e700.zip
Core: show file contents only once while dumping configuration.
Files are considered the same if the path used by nginx during parsing matches.
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r--src/core/ngx_cycle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index 98599f346..a57991c69 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -132,6 +132,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
return NULL;
}
+ ngx_rbtree_init(&cycle->config_dump_rbtree, &cycle->config_dump_sentinel,
+ ngx_str_rbtree_insert_value);
+
if (old_cycle->open_files.part.nelts) {
n = old_cycle->open_files.part.nelts;
for (part = old_cycle->open_files.part.next; part; part = part->next) {