From cc5d34678c6d4bdcd552e6334a383c4df9797f46 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 23 Apr 2015 15:33:03 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 30af667193b..25ec2319d11 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); } }