]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initalize s->enable_usage_log
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 18 Jun 2012 21:27:51 +0000 (14:27 -0700)
committerSage Weil <sage@inktank.com>
Tue, 19 Jun 2012 20:25:58 +0000 (13:25 -0700)
Missing initialization, we ended up not logging every operation.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_common.cc

index 2c9a03e5092b61b17ea7b9e1419d6356092693e5..3ff0792b5d2f2cc03ad50371e9faf03fc92306b5 100644 (file)
@@ -87,6 +87,7 @@ is_err() const
 req_state::req_state(CephContext *_cct, struct RGWEnv *e) : cct(_cct), os_auth_token(NULL), os_user(NULL), os_groups(NULL), env(e)
 {
   enable_ops_log = env->conf->enable_ops_log;
+  enable_usage_log = env->conf->enable_usage_log;
   content_started = false;
   format = 0;
   bucket_acl = NULL;