fix: make sure we list freeVersions like DEL marker with --versions (#19878)

freeVersions() was being incorrectly skipped; list it as
valid objects properly.

Co-authored-by: Krishnan Parthasarathi <Krishnan Parthasarathi>
This commit is contained in:
Harshavardhana
2024-06-07 15:18:44 -07:00
committed by GitHub
parent 2dd8faaedc
commit 29a25a538f
5 changed files with 63 additions and 12 deletions

View File

@@ -586,7 +586,7 @@ func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates
// Remove filename which is the meta file.
item.transformMetaDir()
fivs, err := getFileInfoVersions(buf, item.bucket, item.objectPath(), false)
fivs, err := getFileInfoVersions(buf, item.bucket, item.objectPath(), false, false)
metaDataPoolPut(buf)
if err != nil {
res["err"] = err.Error()