mirror of
https://github.com/pgsty/minio.git
synced 2026-08-06 07:41:16 +03:00
fix: UpdateObjectVersion should compare versionID through versions (#12726)
fixes #12703
This commit is contained in:
committed by
GitHub
parent
9516587a6c
commit
a6ec405443
@@ -784,9 +784,11 @@ func (z *xlMetaV2) UpdateObjectVersion(fi FileInfo) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
case DeleteType:
|
case DeleteType:
|
||||||
|
if version.DeleteMarker.VersionID == uv {
|
||||||
return errMethodNotAllowed
|
return errMethodNotAllowed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return errFileVersionNotFound
|
return errFileVersionNotFound
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user