mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
preserve null version delete marker on suspended bucket version (#18547)
This commit is contained in:
parent
95d6f43cc8
commit
b0264bdb90
@ -1415,7 +1415,10 @@ func (x *xlMetaV2) DeleteVersion(fi FileInfo) (string, error) {
|
|||||||
if fi.MarkDeleted && (fi.VersionPurgeStatus().Empty() || (fi.VersionPurgeStatus() != Complete)) {
|
if fi.MarkDeleted && (fi.VersionPurgeStatus().Empty() || (fi.VersionPurgeStatus() != Complete)) {
|
||||||
err = x.addVersion(ventry)
|
err = x.addVersion(ventry)
|
||||||
}
|
}
|
||||||
return "", err
|
// if we remove null version. we should try to add null version to top layer.
|
||||||
|
if uv.String() != emptyUUID {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
case ObjectType:
|
case ObjectType:
|
||||||
if updateVersion && !fi.Deleted {
|
if updateVersion && !fi.Deleted {
|
||||||
ver, err := x.getIdx(i)
|
ver, err := x.getIdx(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user