aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-03 08:41:42 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-03 08:41:42 +0000
commit9afd58ffe5c9535ec61dbf14289bcebea46efe60 (patch)
treea37d4b8da55a53ee12dd458742f6ddcd7f2f6151 /src/http/ngx_http_core_module.c
parent1b982e1c0001a3ad7f134d066f07f3bc69cc28cc (diff)
downloadnginx-9afd58ffe5c9535ec61dbf14289bcebea46efe60.tar.gz
nginx-9afd58ffe5c9535ec61dbf14289bcebea46efe60.zip
open_file_cache_events
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 9a52678bd..b25346daa 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -471,6 +471,13 @@ static ngx_command_t ngx_http_core_commands[] = {
offsetof(ngx_http_core_loc_conf_t, open_file_cache_errors),
NULL },
+ { ngx_string("open_file_cache_events"),
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
+ ngx_conf_set_flag_slot,
+ NGX_HTTP_LOC_CONF_OFFSET,
+ offsetof(ngx_http_core_loc_conf_t, open_file_cache_events),
+ NULL },
+
ngx_null_command
};
@@ -2375,6 +2382,7 @@ ngx_http_core_create_loc_conf(ngx_conf_t *cf)
lcf->open_file_cache = NGX_CONF_UNSET_PTR;
lcf->open_file_cache_retest = NGX_CONF_UNSET;
lcf->open_file_cache_errors = NGX_CONF_UNSET;
+ lcf->open_file_cache_events = NGX_CONF_UNSET;
return lcf;
}
@@ -2567,6 +2575,9 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_conf_merge_sec_value(conf->open_file_cache_errors,
prev->open_file_cache_errors, 0);
+ ngx_conf_merge_sec_value(conf->open_file_cache_events,
+ prev->open_file_cache_events, 0);
+
return NGX_CONF_OK;
}