forked from TrueCloudLab/frostfs-s3-gw
[#513] Don't remove delete mark object
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
41c815441b
commit
59570ac075
1 changed files with 2 additions and 3 deletions
|
@ -531,11 +531,10 @@ func (n *layer) removeVersionIfFound(ctx context.Context, bkt *data.BucketInfo,
|
|||
var deleteMarkVersion string
|
||||
if version.DeleteMarker != nil {
|
||||
deleteMarkVersion = obj.VersionID
|
||||
}
|
||||
|
||||
if err := n.objectDelete(ctx, bkt, version.OID); err != nil {
|
||||
} else if err := n.objectDelete(ctx, bkt, version.OID); err != nil {
|
||||
return deleteMarkVersion, err
|
||||
}
|
||||
|
||||
return deleteMarkVersion, n.treeService.RemoveVersion(ctx, &bkt.CID, version.ID)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue