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