mirror of
https://github.com/ceph/ceph
synced 2024-12-22 03:22:00 +00:00
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 <yehuda@redhat.com>
This commit is contained in:
parent
97158dfef3
commit
cc5d34678c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user