Fixes: http://tracker.ceph.com/issues/19096
rgw_obj_key currently deals with the bucket index key, and not
representing a (name, instance, ns) tupple. Need to initialize
it in two steps.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
392c5d9dae6ba699014ffe6e1e67818fa62d7e41)
}
s->object_acl = new RGWAccessControlPolicy(s->cct);
- rgw_obj obj(s->bucket, s->object);
+ rgw_obj obj(s->bucket, s->object.name);
+ obj.set_instance(s->object.instance);
store->set_atomic(s->obj_ctx, obj);
if (prefetch_data) {
if (op_ret < 0)
return;
- rgw_obj obj(s->bucket, s->object);
+ rgw_obj obj(s->bucket, s->object.name);
+ obj.set_instance(s->object.instance);
store->set_atomic(s->obj_ctx, obj);