mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
Revert "ilm: Remove null version if not latest with proper config (#10467)"
This reverts commit 4b6264da7d1c140562ddd86b94de9ae7b18d4131.
This commit is contained in:
parent
4b6264da7d
commit
b70995dd60
@ -341,10 +341,7 @@ func (j xlMetaV2DeleteMarker) ToFileInfo(volume, path string) (FileInfo, error)
|
|||||||
// check if the version is not "null"
|
// check if the version is not "null"
|
||||||
if !bytes.Equal(j.VersionID[:], uv[:]) {
|
if !bytes.Equal(j.VersionID[:], uv[:]) {
|
||||||
versionID = uuid.UUID(j.VersionID).String()
|
versionID = uuid.UUID(j.VersionID).String()
|
||||||
} else {
|
|
||||||
versionID = nullVersionID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fi := FileInfo{
|
fi := FileInfo{
|
||||||
Volume: volume,
|
Volume: volume,
|
||||||
Name: path,
|
Name: path,
|
||||||
@ -361,10 +358,7 @@ func (j xlMetaV2Object) ToFileInfo(volume, path string) (FileInfo, error) {
|
|||||||
// check if the version is not "null"
|
// check if the version is not "null"
|
||||||
if !bytes.Equal(j.VersionID[:], uv[:]) {
|
if !bytes.Equal(j.VersionID[:], uv[:]) {
|
||||||
versionID = uuid.UUID(j.VersionID).String()
|
versionID = uuid.UUID(j.VersionID).String()
|
||||||
} else {
|
|
||||||
versionID = nullVersionID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fi := FileInfo{
|
fi := FileInfo{
|
||||||
Volume: volume,
|
Volume: volume,
|
||||||
Name: path,
|
Name: path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user