From b70995dd60cc5925a4de9ca8b3860786923127d7 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 11 Sep 2020 18:15:49 -0700 Subject: [PATCH] Revert "ilm: Remove null version if not latest with proper config (#10467)" This reverts commit 4b6264da7d1c140562ddd86b94de9ae7b18d4131. --- cmd/xl-storage-format-v2.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/xl-storage-format-v2.go b/cmd/xl-storage-format-v2.go index 2454fdff4..79f6d4e95 100644 --- a/cmd/xl-storage-format-v2.go +++ b/cmd/xl-storage-format-v2.go @@ -341,10 +341,7 @@ 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, @@ -361,10 +358,7 @@ 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,