]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bucket_owner assignment
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Feb 2013 22:40:11 +0000 (14:40 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Feb 2013 22:54:54 +0000 (14:54 -0800)
s->bucket_acl may be null, so reverting to old behavior.

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

index 474d83e421e304672ac42f0a008d0173af2595a2..57f73129f29368e2723c524cbf41879970169ea1 100644 (file)
@@ -304,7 +304,7 @@ int rgw_log_op(RGWRados *store, struct req_state *s, const string& op_name, OpsL
   entry.user = s->user.user_id;
   if (s->object_acl)
     entry.object_owner = s->object_acl->get_owner().get_id();
-  entry.bucket_owner = s->bucket_acl->get_owner().get_id();
+  entry.bucket_owner = s->bucket_owner.get_id();
 
 
   uint64_t bytes_sent = s->cio->get_bytes_sent();