Fix truncated list response on deleted replicated objects (#16504)

This commit is contained in:
Klaus Post
2023-01-30 18:13:53 +01:00
committed by GitHub
parent b923a62425
commit f713436dd0
4 changed files with 73 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ func (s *xlStorage) WalkDir(ctx context.Context, opts WalkDirOptions, wr io.Writ
if opts.Limit <= 0 {
return
}
if m, _, _ := isIndexedMetaV2(metadata); m != nil && !m.IsLatestDeleteMarker() {
if m, _, _ := isIndexedMetaV2(metadata); m != nil && !m.AllHidden(true) {
objsReturned++
}
}