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)
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);
}
}