From: Yehuda Sadeh Date: Thu, 23 Apr 2015 22:33:03 +0000 (-0700) Subject: rgw: use correct oid when creating gc chains X-Git-Tag: v9.0.1~66^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4454%2Fhead;p=ceph.git rgw: use correct oid when creating gc chains Fixes: #11447 Backport: hammer When creating gc chain, use the appropriate oid, otherwise objects will leak. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 30af667193b1..25ec2319d114 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -4131,7 +4131,7 @@ void RGWRados::update_gc_chain(rgw_obj& head_obj, RGWObjManifest& manifest, cls_ string oid, loc; rgw_bucket bucket; get_obj_bucket_and_oid_loc(mobj, bucket, oid, loc); - cls_rgw_obj_key key(head_obj.get_index_key_name(), head_obj.get_instance()); + cls_rgw_obj_key key(oid); chain->push_obj(bucket.data_pool, key, loc); } }