]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: set correct instance on the object
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Sep 2016 01:35:59 +0000 (18:35 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Sep 2016 01:35:59 +0000 (18:35 -0700)
Fixes: http://tracker.ceph.com/issues/17443
This was broken by commit bc840afafdfe5e528e5c1b711e71420ac3cb5a67

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

index 2c820e4030b45e442664b15a76fce3a4c9811bea..4c913bc9cc2251dce83ee24ef8b0c9f4cb8b7e95 100644 (file)
@@ -311,7 +311,7 @@ static int read_policy(RGWRados *store,
     obj.set_in_extra_data(true);
   } else {
     obj = rgw_obj(bucket, object.name);
-    obj.set_instance(s->object.instance);
+    obj.set_instance(object.instance);
   }
   int ret = get_policy_from_attr(s->cct, store, s->obj_ctx, bucket_info, bucket_attrs, policy, obj);
   if (ret == -ENOENT && !object.empty()) {