diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2011-07-19 23:02:11 +0200 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2011-07-19 23:02:11 +0200 |
commit | 43575c7ac78d3e002d6d8c35257651968ec3d580 (patch) | |
tree | 8d30c0f65d2d9a36b2f5aff26e60673db63b04b2 /src/rgw/rgw_env.cc | |
parent | rgw: use thread pool for rgw work (diff) | |
download | ceph-43575c7ac78d3e002d6d8c35257651968ec3d580.tar.xz ceph-43575c7ac78d3e002d6d8c35257651968ec3d580.zip |
rgw: fix concurrency issue
Diffstat (limited to 'src/rgw/rgw_env.cc')
-rw-r--r-- | src/rgw/rgw_env.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rgw/rgw_env.cc b/src/rgw/rgw_env.cc index 8728277a111..3bbce256583 100644 --- a/src/rgw/rgw_env.cc +++ b/src/rgw/rgw_env.cc @@ -4,8 +4,6 @@ #include <string> #include <map> -RGWEnv rgw_env; - RGWEnv::RGWEnv() { conf = new RGWConf; @@ -16,7 +14,7 @@ RGWEnv::~RGWEnv() delete conf; } -void RGWEnv::reinit(char **envp) +void RGWEnv::init(char **envp) { const char *p; @@ -76,7 +74,6 @@ size_t RGWEnv::get_size(const char *name, size_t def_val) void RGWConf::init(RGWEnv *env) { - max_cache_lru = env->get_size("RGW_MAX_CACHE_LRU", 10000); log_level = env->get_int("RGW_LOG_LEVEL", g_conf->rgw_log); should_log = env->get_bool("RGW_SHOULD_LOG", RGW_SHOULD_LOG_DEFAULT); } |