summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_env.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2011-07-19 23:02:11 +0200
committerYehuda Sadeh <yehuda@hq.newdream.net>2011-07-19 23:02:11 +0200
commit43575c7ac78d3e002d6d8c35257651968ec3d580 (patch)
tree8d30c0f65d2d9a36b2f5aff26e60673db63b04b2 /src/rgw/rgw_env.cc
parentrgw: use thread pool for rgw work (diff)
downloadceph-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.cc5
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);
}