]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix RGWLibIO did not init RGWEnv 19065/head
authorTianshan Qu <tianshan@xsky.com>
Tue, 21 Nov 2017 04:00:34 +0000 (12:00 +0800)
committerTianshan Qu <tianshan@xsky.com>
Tue, 21 Nov 2017 04:01:12 +0000 (12:01 +0800)
enable_ops_log and enable_usage_log was init in RGWEnv.init

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_lib.h

index 0ddaa54e38f759fcfc6a8a373f77654dfebff0e3..9ec3f35b6d9742bc0e375a48f0e894147b19e23e 100644 (file)
@@ -63,7 +63,9 @@ namespace rgw {
     RGWLibIO(const RGWUserInfo &_user_info)
       : user_info(_user_info) {}
 
-    void init_env(CephContext *cct) override {}
+    void init_env(CephContext *cct) override {
+      env.init(cct);
+    }
 
     const RGWUserInfo& get_user() {
       return user_info;