]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: use correct oid when creating gc chains
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 23 Apr 2015 22:33:03 +0000 (15:33 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 29 Apr 2015 23:18:12 +0000 (16:18 -0700)
Fixes: #11447
Backport: hammer

When creating gc chain, use the appropriate oid, otherwise objects will
leak.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit cc5d34678c6d4bdcd552e6334a383c4df9797f46)

src/rgw/rgw_rados.cc

index 604d4cb8ba715761fb26d86e4452fe0d38982929..18dc4ae8464cd595a796e299fc6846fc9850d7e7 100644 (file)
@@ -4086,7 +4086,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);
   }
 }